Skip to content

Commit df8b1fb

Browse files
committed
【功能优化】MALL:商品新增时,增加 keepalive 缓存
1 parent 36b5db1 commit df8b1fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/router/modules/remaining.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
361361
component: () => import('@/views/mall/product/spu/form/index.vue'),
362362
name: 'ProductSpuAdd',
363363
meta: {
364-
noCache: true,
364+
noCache: false, // 需要缓存
365365
hidden: true,
366366
canTo: true,
367367
icon: 'ep:edit',

src/views/mall/product/spu/form/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import SkuForm from './SkuForm.vue'
6363
import DeliveryForm from './DeliveryForm.vue'
6464
import { convertToInteger, floatToFixed2, formatToFraction } from '@/utils'
6565
66-
defineOptions({ name: 'ProductSpuForm' })
66+
defineOptions({ name: 'ProductSpuAdd' })
6767
6868
const { t } = useI18n() // 国际化
6969
const message = useMessage() // 消息弹窗

0 commit comments

Comments
 (0)