diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index db23bb1f..380e48aa 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -361,7 +361,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ component: () => import('@/views/mall/product/spu/form/index.vue'), name: 'ProductSpuAdd', meta: { - noCache: true, + noCache: false, // 需要缓存 hidden: true, canTo: true, icon: 'ep:edit', diff --git a/src/views/mall/product/spu/form/index.vue b/src/views/mall/product/spu/form/index.vue index de874524..c4e4b7b2 100644 --- a/src/views/mall/product/spu/form/index.vue +++ b/src/views/mall/product/spu/form/index.vue @@ -63,7 +63,7 @@ import SkuForm from './SkuForm.vue' import DeliveryForm from './DeliveryForm.vue' import { convertToInteger, floatToFixed2, formatToFraction } from '@/utils' -defineOptions({ name: 'ProductSpuForm' }) +defineOptions({ name: 'ProductSpuAdd' }) const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗