提交 b0d3101b 作者: 郁骅焌

首页

上级 6d6eacc6
......@@ -75,6 +75,33 @@ export const useRoutesStore = defineStore('routes', {
name: 'NotFound',
meta: { hidden: true },
})
/** 手动添加首页 */
if (import.meta.env.VITE_APP_BASE_URL !== '') {
list.unshift({
path: '/',
name: 'Root',
component: 'Layout',
meta: {
title: '首页',
icon: 'home-2-line',
},
children: [
{
path: 'index',
name: 'Index',
component: '/@/views/index/index.vue',
meta: {
title: '首页',
icon: 'home-2-line',
noClosable: true,
noKeepAlive: true,
noColumn: true,
},
},
],
})
}
routes = convertRouter(list)
}
// 根据权限和rolesControl过滤路由
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论