You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 静态路由(无需权限)
|
|
|
|
|
|
*/
|
|
|
|
|
|
export const constantRoutes: RouteRecordRaw[] = [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/login',
|
|
|
|
|
|
name: 'Login',
|
|
|
|
|
|
component: () => import('@/views/login.vue'),
|
|
|
|
|
|
meta: { title: '登录', hidden: true },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/',
|
|
|
|
|
|
name: 'Home',
|
|
|
|
|
|
component: () => import('@/views/index.vue'),
|
|
|
|
|
|
meta: { title: '首页' },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/:pathMatch(.*)*',
|
|
|
|
|
|
name: 'NotFound',
|
|
|
|
|
|
component: () => import('@/views/404.vue'),
|
|
|
|
|
|
meta: { title: '404', hidden: true },
|
|
|
|
|
|
},
|
|
|
|
|
|
]
|