From af7162b88ccf4d256287532db91baae638b9889e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Sat, 16 Apr 2022 00:08:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20eslint=E4=BB=A3=E7=A0=81=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 0613f0e4c9e880d302abfc81aab48ab5410986c7 --- src/views/pms/category/components/Category.vue | 2 +- src/views/pms/goods/detail.vue | 7 ++++++- src/views/system/dict/components/Dict.vue | 2 +- src/views/system/menu/components/Menu.vue | 2 +- src/views/system/role/components/Role.vue | 4 ++-- 5 files changed, 11 insertions(+), 6 deletions(-) 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 @@