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 11:33:44 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
// 路由模式
|
|
|
|
|
history: createWebHashHistory(),
|
|
|
|
|
routes
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router
|