From d31ade7a5fccc98db7e90e41a31564205b393056 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 7 Jun 2023 18:31:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=20SPU=20=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E8=B7=AF=E7=94=B1=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/modules/remaining.ts | 6 +++--- src/views/mall/product/spu/index.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index bfa4b15c..b7932858 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -355,7 +355,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, children: [ { - path: 'spu/add', // TODO @puhui999:最好拆成 add 和 edit 两个路由;添加商品;修改商品 fix + path: 'spu/add', component: () => import('@/views/mall/product/spu/addForm.vue'), name: 'ProductSpuAdd', meta: { @@ -370,7 +370,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ { path: 'spu/edit/:spuId(\\d+)', component: () => import('@/views/mall/product/spu/addForm.vue'), - name: 'productSpuEdit', + name: 'ProductSpuEdit', meta: { noCache: true, hidden: true, @@ -383,7 +383,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ { path: 'spu/detail/:spuId(\\d+)', component: () => import('@/views/mall/product/spu/addForm.vue'), - name: 'productSpuDetail', + name: 'ProductSpuDetail', meta: { noCache: true, hidden: true, diff --git a/src/views/mall/product/spu/index.vue b/src/views/mall/product/spu/index.vue index 829a15fb..76cb1166 100644 --- a/src/views/mall/product/spu/index.vue +++ b/src/views/mall/product/spu/index.vue @@ -400,7 +400,7 @@ const openForm = (id?: number) => { return } // 新增 - push('/product/spu/add') + push({ name: 'ProductSpuAdd' }) } /**