修改路由权限
This commit is contained in:
parent
5780fcc631
commit
e39d0454a0
@ -22,6 +22,7 @@ const adRouter = {
|
|||||||
path: 'edit',
|
path: 'edit',
|
||||||
component: () => import('@/views/ad/edit'), // Parent router-view
|
component: () => import('@/views/ad/edit'), // Parent router-view
|
||||||
name: 'adEdit',
|
name: 'adEdit',
|
||||||
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: '广告编辑',
|
title: '广告编辑',
|
||||||
},
|
},
|
||||||
|
@ -42,7 +42,7 @@ import errRouter from './error'
|
|||||||
export const constantRoutes = [
|
export const constantRoutes = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect: '/admin/ad-list'
|
redirect: '/admin/ad-list',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/login',
|
path: '/login',
|
||||||
@ -62,6 +62,9 @@ export const constantRoutes = [
|
|||||||
// adminRouter,
|
// adminRouter,
|
||||||
errRouter,
|
errRouter,
|
||||||
userRouter,
|
userRouter,
|
||||||
|
adminRouter,
|
||||||
|
// 404 page must be placed at the end !!!
|
||||||
|
{path: '*', redirect: '/404', hidden: true},
|
||||||
]
|
]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -69,9 +72,9 @@ export const constantRoutes = [
|
|||||||
* the routes that need to be dynamically loaded based on user roles
|
* the routes that need to be dynamically loaded based on user roles
|
||||||
*/
|
*/
|
||||||
export const asyncRoutes = [
|
export const asyncRoutes = [
|
||||||
adminRouter,
|
// adminRouter,
|
||||||
// 404 page must be placed at the end !!!
|
// // 404 page must be placed at the end !!!
|
||||||
{path: '*', redirect: '/404', hidden: true},
|
// {path: '*', redirect: '/404', hidden: true},
|
||||||
]
|
]
|
||||||
|
|
||||||
const createRouter = () =>
|
const createRouter = () =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user