Commit 993ab44ee3af29f29af3a719f0a695ed845be0c7
Merge branch 'fix/category' into 'main_dev'
fix: 修复产品品类导入svg引入 See merge request yunteng/thingskit-front!1007
Showing
1 changed file
with
2 additions
and
3 deletions
... | ... | @@ -55,6 +55,8 @@ |
55 | 55 | } from '/@/api/device/modelOfMatter'; |
56 | 56 | // import XLSX, { CellObject } from 'xlsx'; |
57 | 57 | import { useLoading } from '/@/components/Loading'; |
58 | + import JSONImage from '/@/assets/svg/JSON.svg'; | |
59 | + import CSVImage from '/@/assets/svg/excel.svg'; | |
58 | 60 | |
59 | 61 | const emits = defineEmits(['register', 'handleImportCSV', 'handleReload']); |
60 | 62 | |
... | ... | @@ -72,9 +74,6 @@ |
72 | 74 | }, |
73 | 75 | }); |
74 | 76 | |
75 | - const JSONImage = ref<string>(new URL('/src/assets/svg/JSON.svg', import.meta.url).href); | |
76 | - const CSVImage = ref<string>(new URL('/src/assets/svg/excel.svg', import.meta.url).href); | |
77 | - | |
78 | 77 | const isEmptyObject = (value: any) => isObject(value) && !Object.keys(value).length; |
79 | 78 | |
80 | 79 | const ImportInfo = ref<{ id?: string; isCateGory?: string | Boolean }>({}); | ... | ... |