fix(前段路由): 修改xpack前段路由引用

修改xpack前段路由引用
This commit is contained in:
song-tianyang 2022-01-03 18:39:34 +08:00 committed by 刘瑞斌
parent 4a63c924a7
commit c942db60ff

View File

@ -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,
]
};