refactor: 路由代码优化和完善注释
Former-commit-id: 859d3b74927b032ad265170d6e6ffd821b3fa0d3
This commit is contained in:
@@ -46,6 +46,7 @@ const filterAsyncRoutes = (routes: RouteRecordRaw[], roles: string[]) => {
|
||||
if (hasPermission(roles, tmpRoute)) {
|
||||
if (tmpRoute.component?.toString() == 'Layout') {
|
||||
tmpRoute.component = Layout;
|
||||
console.log();
|
||||
} else {
|
||||
const component = modules[`../../views/${tmpRoute.component}.vue`];
|
||||
if (component) {
|
||||
|
||||
Reference in New Issue
Block a user