feat: 工具导航页
parent
bdc54856b0
commit
d7dfd79a26
@ -1,25 +1,25 @@
|
||||
const { VITE_HIDE_HOME } = import.meta.env;
|
||||
const Layout = () => import("@/layout/index.vue");
|
||||
const Layout = () => import('@/layout/index.vue');
|
||||
|
||||
export default {
|
||||
path: "/",
|
||||
name: "Home",
|
||||
component: Layout,
|
||||
redirect: "/welcome",
|
||||
meta: {
|
||||
icon: "ep:home-filled",
|
||||
title: "首页",
|
||||
rank: 0
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/welcome",
|
||||
name: "Welcome",
|
||||
component: () => import("@/views/welcome/index.vue"),
|
||||
meta: {
|
||||
title: "首页",
|
||||
showLink: VITE_HIDE_HOME === "true" ? false : true
|
||||
}
|
||||
}
|
||||
]
|
||||
path: '/',
|
||||
name: 'Home',
|
||||
component: Layout,
|
||||
redirect: '/welcome',
|
||||
meta: {
|
||||
icon: 'ep:house',
|
||||
title: '首页',
|
||||
rank: 0,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '/welcome',
|
||||
name: 'Welcome',
|
||||
component: () => import('@/views/welcome/index.vue'),
|
||||
meta: {
|
||||
title: '首页',
|
||||
showLink: VITE_HIDE_HOME === 'true' ? false : true,
|
||||
},
|
||||
},
|
||||
],
|
||||
} satisfies RouteConfigsTable;
|
||||
|
||||
@ -0,0 +1,23 @@
|
||||
const Layout = () => import('@/layout/index.vue');
|
||||
|
||||
export default {
|
||||
path: '/tool',
|
||||
name: 'Tool',
|
||||
component: Layout,
|
||||
redirect: '/tool/nav',
|
||||
meta: {
|
||||
icon: 'ep:rank',
|
||||
title: '工具页面',
|
||||
rank: 1,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '/tool/nav',
|
||||
name: 'ToolNav',
|
||||
component: () => import('@/views/tool/nav/index.vue'),
|
||||
meta: {
|
||||
title: '工具导航',
|
||||
},
|
||||
},
|
||||
],
|
||||
} satisfies RouteConfigsTable;
|
||||
Loading…
Reference in New Issue