|
@@ -137,13 +137,13 @@ export const asyncRoutes = [
|
|
|
// hidden: 'true',
|
|
|
// hidden: store.getters.userIdentity === 1 ? 'true' : 'false',
|
|
|
name: 'Auth',
|
|
|
- meta: { title: '授权管理', icon: 'el-icon-s-promotion', roles: ['admin', 'normal'], noCache: true },
|
|
|
+ meta: { title: '授权管理', icon: 'el-icon-s-promotion', roles: ['admin', 'normal'], noCache: true, proxy: true },
|
|
|
children: [
|
|
|
{
|
|
|
path: 'list',
|
|
|
component: () => import('@/views/supplier/auth/index'),
|
|
|
name: 'AuthList',
|
|
|
- meta: { title: '授权列表', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: true, affix: true }
|
|
|
+ meta: { title: '授权列表', icon: 'el-icon-menu', roles: ['admin', 'normal'], affix: true, noCache: true, proxy: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -155,28 +155,65 @@ export const asyncRoutes = [
|
|
|
redirect: '/product/list',
|
|
|
hidden: true,
|
|
|
name: 'Auth',
|
|
|
- meta: { title: '商品管理', icon: 'el-icon-s-shop', roles: ['admin', 'normal'], noCache: true },
|
|
|
+ meta: { title: '商品管理', icon: 'el-icon-s-shop', roles: ['admin', 'normal'], noCache: true, proxy: true },
|
|
|
children: [
|
|
|
{
|
|
|
hidden: true,
|
|
|
path: 'list',
|
|
|
component: () => import('@/views/supplier/product/index'),
|
|
|
name: 'Product',
|
|
|
- meta: { title: '商品列表', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: true }
|
|
|
+ meta: { title: '商品列表', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: true, proxy: true }
|
|
|
},
|
|
|
{
|
|
|
hidden: true,
|
|
|
path: 'add',
|
|
|
component: () => import('@/views/supplier/product/add'),
|
|
|
name: 'AddProduct',
|
|
|
- meta: { title: '添加商品', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: false }
|
|
|
+ meta: { title: '添加商品', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: true, proxy: true }
|
|
|
},
|
|
|
{
|
|
|
hidden: true,
|
|
|
path: 'edit',
|
|
|
component: () => import('@/views/supplier/product/edit'),
|
|
|
name: 'EditProduct',
|
|
|
- meta: { title: '修改商品', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: false }
|
|
|
+ meta: { title: '修改商品', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: true, proxy: true }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/review',
|
|
|
+ component: Layout,
|
|
|
+ alwaysShow: true,
|
|
|
+ redirect: '/review/list',
|
|
|
+ name: 'Review',
|
|
|
+ meta: { title: '品牌授权审核', icon: 'el-icon-s-check', roles: ['admin'], noCache: true },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ component: () => import('@/views/supplier/review/index'),
|
|
|
+ name: 'ReviewList',
|
|
|
+ meta: { title: '审核列表', icon: 'el-icon-menu', roles: ['admin'], noCache: true, affix: true }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'auth-list',
|
|
|
+ hidden: true,
|
|
|
+ component: () => import('@/views/supplier/review/authList'),
|
|
|
+ name: 'AuthList',
|
|
|
+ meta: { title: '授权机构审核列表', icon: 'el-icon-menu', roles: ['admin'], noCache: true }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'shop-list',
|
|
|
+ hidden: true,
|
|
|
+ component: () => import('@/views/supplier/review/shopList'),
|
|
|
+ name: 'ShopList',
|
|
|
+ meta: { title: '商品审核列表', icon: 'el-icon-menu', roles: ['admin'], noCache: true }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'shop-detail',
|
|
|
+ hidden: true,
|
|
|
+ component: () => import('@/views/supplier/review/shopDetail'),
|
|
|
+ name: 'ShopDetail',
|
|
|
+ meta: { title: '商品审核详情', icon: 'el-icon-menu', roles: ['admin'], noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|