Files
Vue3Template/tsvue/src/core/config/route.config.ts
2024-09-27 00:58:46 +08:00

52 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 根据page目录结构自动生成的路由配置文件
// 参考Nuxt.jshttps://zh.nuxtjs.org/guide/routing
// @ts-ignore
export const AutoRoutesConfig = [
{
name: "about",
path: "/about",
component: () => import(/* webpackChunkName: 'about' */ '@/page/about.vue'),
meta: {
isLogin: false,
title: "关于我"
}
},
{
path: "/user",
component: () => import(/* webpackChunkName: 'user' */ '@/page/user.vue'),
meta: {
isLogin: false,
title: "用户列表"
},
children: [
{
name: "user",
path: "",
component: () => import(/* webpackChunkName: 'userindex' */ '@/page/user/index.vue'),
meta: {
isLogin: false,
title: "用户中心首页"
}
},
{
name: "user-id",
path: ":id",
component: () => import(/* webpackChunkName: 'user_id' */ '@/page/user/_id.vue'),
meta: {
isLogin: false,
title: "用户详情页面"
}
}
]
},
{
name: "index",
path: "/",
component: () => import(/* webpackChunkName: 'index' */ '@/page/index.vue'),
meta: {
isLogin: false,
title: "首页"
}
}
];