提交价格套餐功能
This commit is contained in:
@@ -24,7 +24,7 @@ import Layout from '@/layout'
|
||||
}
|
||||
*/
|
||||
|
||||
// 公共路由
|
||||
// 公共路由(404 不放这里,等动态路由注册后再挂,避免抢先匹配)
|
||||
export const constantRoutes = [
|
||||
{
|
||||
path: '/redirect',
|
||||
@@ -47,11 +47,6 @@ export const constantRoutes = [
|
||||
component: () => import('@/views/register'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
component: () => import('@/views/error/404'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/401',
|
||||
component: () => import('@/views/error/401'),
|
||||
@@ -131,7 +126,7 @@ export const dynamicRoutes = [
|
||||
{
|
||||
path: 'index/:dictId(\\d+)',
|
||||
component: () => import('@/views/system/dict/data'),
|
||||
name: 'Data',
|
||||
name: 'DictData',
|
||||
meta: { title: '字典数据', activeMenu: '/system/dict' }
|
||||
}
|
||||
]
|
||||
@@ -166,6 +161,13 @@ export const dynamicRoutes = [
|
||||
}
|
||||
]
|
||||
|
||||
// 404 必须在动态路由之后注册,否则会抢先匹配 /system/dict-data 等隐藏页
|
||||
export const notFoundRoute = {
|
||||
path: '/:pathMatch(.*)*',
|
||||
component: () => import('@/views/error/404'),
|
||||
hidden: true
|
||||
}
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: constantRoutes,
|
||||
|
||||
Reference in New Issue
Block a user