refactor: 代码优化
Former-commit-id: e7fb4e921a04664265a5a51c7ff7b4f374507d4a
This commit is contained in:
@@ -34,7 +34,7 @@ export const filterAsyncRoutes = (
|
||||
} else {
|
||||
const component = modules[`../../views/${tmp.component}.vue`] as any;
|
||||
if (component) {
|
||||
tmp.component = modules[`../../views/${tmp.component}.vue`];
|
||||
tmp.component = component;
|
||||
} else {
|
||||
tmp.component = modules[`../../views/error-page/404.vue`];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user