fix: eslint代码检查问题修复

Former-commit-id: 0613f0e4c9e880d302abfc81aab48ab5410986c7
This commit is contained in:
郝先瑞
2022-04-16 00:08:05 +08:00
parent 55e097eb2c
commit af7162b88c
5 changed files with 11 additions and 6 deletions

View File

@@ -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'])

View File

@@ -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)