refactor(projects): 代码优化

ISSUES CLOSED: \
This commit is contained in:
Soybean
2022-05-19 00:15:37 +08:00
parent 028096e53f
commit 095c432363
9 changed files with 12 additions and 37 deletions

View File

@@ -1,5 +1,3 @@
import { consoleError } from '../common';
/**
* 权限路由排序
* @param routes - 权限路由
@@ -20,7 +18,7 @@ export function handleModuleRoutes(modules: AuthRoute.RouteModule) {
if (item) {
routes.push(item);
} else {
consoleError(`路由模块解析出错: key = ${key}`);
window.console.error(`路由模块解析出错: key = ${key}`);
}
});