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.
RuoYi-Vue/ruoyi-ui-next/src/router/constant.ts

26 lines
561 B

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 },
},
]