fix: fix win system dynamicImport error

This commit is contained in:
vben
2020-11-10 00:54:08 +08:00
parent 1093ec3e6e
commit a90d93fc4d
5 changed files with 14 additions and 24 deletions

View File

@@ -1,3 +1,4 @@
// The content here is just for type approval. The actual file content is overwritten by transform
export default function (id: string) {
const dynamicImportModule: any = id;
return dynamicImportModule;

View File

@@ -53,7 +53,6 @@ export function genRouteModule(moduleList: AppRouteModule[]) {
}
// 动态引入
// TODO 错误写法
function asyncImportRoute(routes: AppRouteRecordRaw[] | undefined) {
if (!routes) return;
routes.forEach((item) => {