import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' const routes: Array = [ { path: '/index', name: 'index', component: () => import('views/AppMain.vue'), meta: { title: '主页面', keepAlive: true, AuthFlag: true }, children:[{ path: 'configuration', name: 'configuration', component: () => import('views/AppMain.vue'), meta: { title: '主页面', keepAlive: true, AuthFlag: true }, } ] } ] const router = createRouter({ // 路由模式 history: createWebHashHistory(), routes }) export default router