diff --git a/bin/build.js b/bin/build.js index 65280a51..26b91a94 100644 --- a/bin/build.js +++ b/bin/build.js @@ -39,11 +39,14 @@ const createRoutes = (config = {}) => { const routes = [] // 获取签到页面的路径,如果未指定,则使用默认路径 let signPage = '../views/sign' + let {signPage: sign, homePage: home = "console"} = config.extra || {} if (config.extra?.signPage) { - const sign = config.extra.signPage signPage = `../apps/custom/${sign}/${sign}` } - + let homePage = `../views/console` + if (config.extra?.homePage) { + homePage = `../apps/custom/${home}/${home}` + } // 查找并处理所有应用,将它们的信息添加到路由中 return findApp("src/apps", app => getAppInfo(app, routes)).then(() => { // 生成并输出apps.js文件,定义所有应用的路由 @@ -52,7 +55,8 @@ const createRoutes = (config = {}) => { {path: '/dv', name: '数据大屏入口', component: () => import('../views/dvIndex')}, {path: '/v', name: 'Home', component: () => import('../views/home'), children: [ {path:'/',name:'mainEntry', component:()=>import('../views/mainEntry'),children:[ - ${routes.map(e => { + {name: "工作台", path: "${home}", component: () => import('${homePage}')}, + ${routes.filter(e => ![sign, home].includes(e.name)).map(e => { // 解构每个路由的属性,用于生成路由配置 const {name, label, esm} = e // 生成单个路由配置的字符串表示 diff --git a/project/xumu/AppSystemAccount/AppSystemAccount.vue b/project/xumu/AppAccountManage/AppAccountManage.vue similarity index 99% rename from project/xumu/AppSystemAccount/AppSystemAccount.vue rename to project/xumu/AppAccountManage/AppAccountManage.vue index 2fe2d4ab..ab25d2b4 100644 --- a/project/xumu/AppSystemAccount/AppSystemAccount.vue +++ b/project/xumu/AppAccountManage/AppAccountManage.vue @@ -1,5 +1,5 @@