在jsconfig.json中配置
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
引入效果如下
import Tabs from 'shareComponents/Tabs'
import { toThousands } from "funStore/CommonFun";
import { getUserListApi } from 'components/QymomentsBuild/Api'
import { GroupsListByCorpId } from "components/FormTool/Api";
import { sendEvent } from 'funStore/CommonFun'