重构:商品详情界面的路由、文件路径

This commit is contained in:
YunaiV
2023-08-28 18:56:37 +08:00
parent 9507e2b687
commit 8d026f0837
9 changed files with 46 additions and 77 deletions

View File

@ -195,22 +195,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
noTagsView: true
}
},
{
path: '/trade/order',
component: Layout,
name: 'order',
meta: {
hidden: true
},
children: [
{
path: 'detail',
name: 'TradeOrderDetail',
component: () => import('@/views/mall/trade/order/tradeOrderDetail.vue'),
meta: { title: '订单详情', hidden: true }
}
]
},
{
path: '/403',
component: () => import('@/views/Error/403.vue'),
@ -356,7 +340,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
children: [
{
path: 'spu/add',
component: () => import('@/views/mall/product/spu/addForm.vue'),
component: () => import('@/views/mall/product/spu/form/index.vue'),
name: 'ProductSpuAdd',
meta: {
noCache: true,
@ -369,7 +353,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
},
{
path: 'spu/edit/:spuId(\\d+)',
component: () => import('@/views/mall/product/spu/addForm.vue'),
component: () => import('@/views/mall/product/spu/form/index.vue'),
name: 'ProductSpuEdit',
meta: {
noCache: true,
@ -382,7 +366,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
},
{
path: 'spu/detail/:spuId(\\d+)',
component: () => import('@/views/mall/product/spu/addForm.vue'),
component: () => import('@/views/mall/product/spu/form/index.vue'),
name: 'ProductSpuDetail',
meta: {
noCache: true,