|
|
@ -117,7 +117,11 @@ const refreshRouter = async () => { |
|
|
|
} |
|
|
|
if (o.component.constructor === String) { |
|
|
|
const name = o.component; |
|
|
|
o.component = () => import(`../views${name}.js`); |
|
|
|
o.component = async () => { |
|
|
|
const module = await import(`../views${name}.js`); |
|
|
|
module.default.name = name; |
|
|
|
return module.default; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
// children
|
|
|
|