import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' // 基础路由 // 菜单路由 export const routes: Array = [ { path: '/', name: 'index', redirect: '/notice', meta: { title: '首页' } }, // { // path: '/notice', // name: 'notice', // component: () => import('@/views/notice/index.vue'), // meta: { // title: '公告管理' // } // }, { path: '/login', name: 'login', component: () => import('@/views/login/index.vue'), meta: { title: '登录' } } ] const router = createRouter({ // routes: routes.concat(permission), routes: routes, history: createWebHashHistory() }) export default router