diff --git a/src/views/pms/category/components/Category.vue b/src/views/pms/category/components/Category.vue index 2daeb3a8..a0a016be 100644 --- a/src/views/pms/category/components/Category.vue +++ b/src/views/pms/category/components/Category.vue @@ -70,7 +70,7 @@ import { listCategories, addCategory, updateCategory, deleteCategories } from '@/api/pms/category' import { Plus, Edit, Delete } from '@element-plus/icons-vue' import SingleUpload from '@/components/Upload/SingleUpload.vue' -import { onMounted, reactive, ref, toRefs, unref, defineEmits } from "vue"; +import { onMounted, reactive, ref, toRefs, unref } from "vue"; import { ElForm, ElMessage, ElMessageBox, ElTree } from "element-plus"; const emit = defineEmits(['categoryClick']) diff --git a/src/views/pms/goods/detail.vue b/src/views/pms/goods/detail.vue index 1e1e4b19..30592718 100644 --- a/src/views/pms/goods/detail.vue +++ b/src/views/pms/goods/detail.vue @@ -32,7 +32,12 @@ const route = useRoute(); const state = reactive({ loaded: false, active: 0, - goodsInfo: {} as GoodsDetail + goodsInfo: { + album: [] as string[], + attrList: [] as any[], + specList: [] as any[], + skuList: [] as any[] + } as GoodsDetail }); const { loaded, active, goodsInfo } = toRefs(state) diff --git a/src/views/system/dict/components/Dict.vue b/src/views/system/dict/components/Dict.vue index 1790c402..8fc969e0 100644 --- a/src/views/system/dict/components/Dict.vue +++ b/src/views/system/dict/components/Dict.vue @@ -72,7 +72,7 @@