删除fullscreen相关代码

This commit is contained in:
wang-liang0615
2023-07-19 17:46:27 +08:00
parent 4eff09900d
commit 158d9f8a76
3 changed files with 1 additions and 110 deletions

View File

@@ -7,7 +7,7 @@ import store from '../store'
export const generatorDynamicRouter = async () => {
const packages = []
const { apps = undefined } = store.getters.userInfo
for (let appName of appConfig.buildModules.filter(item => item !== 'fullscreen')) {
for (let appName of appConfig.buildModules) {
if (!apps || !apps.length || apps.includes(appName)) {
const module = await import(`@/modules/${appName}/index.js`)
const r = await module.default.route()
@@ -26,23 +26,6 @@ export const generatorDynamicRouter = async () => {
}
}
let routes = packages
if (appConfig.buildModules.includes('fullscreen')) {
routes = routes.concat([
{
path: '/fullscreen',
component: BasicLayout,
redirect: '/fullscreen/index',
meta: { title: '大屏' },
name: 'fullscreen',
children: [{
path: '/fullscreen/index',
name: 'fullscreen_index',
meta: { title: '大屏' },
component: () => import(/* webpackChunkName: "fullscreen" */ '@/views/fullscreen'),
}],
},
{ path: '*', redirect: '/404', hidden: true }])
}
routes = routes.concat([
{ path: '*', redirect: '/404', hidden: true },
{