feat: 工具导航页
parent
bdc54856b0
commit
d7dfd79a26
@ -1,25 +1,25 @@
|
|||||||
const { VITE_HIDE_HOME } = import.meta.env;
|
const { VITE_HIDE_HOME } = import.meta.env;
|
||||||
const Layout = () => import("@/layout/index.vue");
|
const Layout = () => import('@/layout/index.vue');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
path: "/",
|
path: '/',
|
||||||
name: "Home",
|
name: 'Home',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: "/welcome",
|
redirect: '/welcome',
|
||||||
meta: {
|
meta: {
|
||||||
icon: "ep:home-filled",
|
icon: 'ep:house',
|
||||||
title: "首页",
|
title: '首页',
|
||||||
rank: 0
|
rank: 0,
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/welcome",
|
path: '/welcome',
|
||||||
name: "Welcome",
|
name: 'Welcome',
|
||||||
component: () => import("@/views/welcome/index.vue"),
|
component: () => import('@/views/welcome/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: "首页",
|
title: '首页',
|
||||||
showLink: VITE_HIDE_HOME === "true" ? false : true
|
showLink: VITE_HIDE_HOME === 'true' ? false : true,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
} satisfies RouteConfigsTable;
|
} 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