mallBackend/src/router/index.ts

34 lines
779 B
TypeScript
Raw Normal View History

2023-12-02 11:33:44 +08:00
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
{
path: '/index',
name: 'index',
2023-12-02 14:51:09 +08:00
component: () => import('views/AppMain.vue'),
2023-12-02 11:33:44 +08:00
meta: {
2023-12-02 14:51:09 +08:00
title: '主页面',
2023-12-02 11:33:44 +08:00
keepAlive: true,
2023-12-02 14:51:09 +08:00
AuthFlag: true
2023-12-02 15:30:19 +08:00
},
children:[{
path: 'configuration',
name: 'configuration',
component: () => import('views/AppMain.vue'),
meta: {
title: '主页面',
keepAlive: true,
AuthFlag: true
},
2023-12-02 11:33:44 +08:00
}
2023-12-02 15:30:19 +08:00
]
2023-12-02 11:33:44 +08:00
}
]
const router = createRouter({
// 路由模式
history: createWebHashHistory(),
routes
})
export default router