fix: eslint代码检查问题修复

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

No files matched your search

@@ -70,7 +70,7 @@
import { listCategories, addCategory, updateCategory, deleteCategories } from '@/api/pms/category' import { listCategories, addCategory, updateCategory, deleteCategories } from '@/api/pms/category'
import { Plus, Edit, Delete } from '@element-plus/icons-vue' import { Plus, Edit, Delete } from '@element-plus/icons-vue'
import SingleUpload from '@/components/Upload/SingleUpload.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"; import { ElForm, ElMessage, ElMessageBox, ElTree } from "element-plus";
const emit = defineEmits(['categoryClick']) const emit = defineEmits(['categoryClick'])
+6 -1
View File
@@ -32,7 +32,12 @@ const route = useRoute();
const state = reactive({ const state = reactive({
loaded: false, loaded: false,
active: 0, 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) const { loaded, active, goodsInfo } = toRefs(state)
+1 -1
View File
@@ -72,7 +72,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, reactive, ref, toRefs, defineEmits } from "vue"; import { onMounted, reactive, ref, toRefs } from "vue";
import { import {
listDictPages, listDictPages,
getDictFormDetail, getDictFormDetail,
+1 -1
View File
@@ -116,7 +116,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { reactive, ref, onMounted, toRefs, defineEmits } from "vue"; import { reactive, ref, onMounted, toRefs } from "vue";
import { Search, Plus, Edit, Refresh, Delete } from "@element-plus/icons-vue"; import { Search, Plus, Edit, Refresh, Delete } from "@element-plus/icons-vue";
import { ElForm, ElMessage, ElMessageBox } from "element-plus"; import { ElForm, ElMessage, ElMessageBox } from "element-plus";
+2 -2
View File
@@ -69,13 +69,13 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, reactive, ref, toRefs, defineEmits } from "vue"; import { onMounted, reactive, ref, toRefs } from "vue";
import { import {
listRolePages, listRolePages,
updateRole, updateRole,
getRoleFormDetail, getRoleFormDetail,
addRole, addRole,
deleteRoles, deleteRoles
} from "@/api/system/role"; } from "@/api/system/role";
import { ElForm, ElMessage, ElMessageBox } from "element-plus"; import { ElForm, ElMessage, ElMessageBox } from "element-plus";
import { Search, Plus, Edit, Refresh, Delete } from "@element-plus/icons-vue"; import { Search, Plus, Edit, Refresh, Delete } from "@element-plus/icons-vue";