mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 20:49:56 +08:00
fix(前段路由): 修改xpack前段路由引用
修改xpack前段路由引用
This commit is contained in:
parent
4a63c924a7
commit
c942db60ff
@ -1,5 +1,3 @@
|
||||
import {errorReportLibrary} from "@/business/components/xpack/router";
|
||||
|
||||
const ProjectSetting = () => import('@/business/components/project/ProjectSetting')
|
||||
const ProjectHome = () => import('@/business/components/project/home/ProjectHome')
|
||||
const ProjectMember = () => import('@/business/components/project/menu/Member')
|
||||
@ -12,6 +10,7 @@ const ProjectAppManage = () => import('@/business/components/project/menu/appman
|
||||
|
||||
const requireContext = require.context('@/business/components/xpack/', true, /router\.js$/);
|
||||
const ProjectVersion = requireContext.keys().map(key => requireContext(key).projectVersion);
|
||||
const ErrorReportLibrary = requireContext.keys().map(key => requireContext(key).errorReportLibrary);
|
||||
|
||||
export default {
|
||||
path: "/project",
|
||||
@ -59,6 +58,6 @@ export default {
|
||||
component: ProjectAppManage
|
||||
},
|
||||
...ProjectVersion,
|
||||
...requireContext.keys().map(key => requireContext(key).errorReportLibrary),
|
||||
...ErrorReportLibrary,
|
||||
]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user