Showing
1 changed file
with
2 additions
and
3 deletions
| @@ -55,6 +55,8 @@ | @@ -55,6 +55,8 @@ | ||
| 55 | } from '/@/api/device/modelOfMatter'; | 55 | } from '/@/api/device/modelOfMatter'; |
| 56 | // import XLSX, { CellObject } from 'xlsx'; | 56 | // import XLSX, { CellObject } from 'xlsx'; |
| 57 | import { useLoading } from '/@/components/Loading'; | 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 | const emits = defineEmits(['register', 'handleImportCSV', 'handleReload']); | 61 | const emits = defineEmits(['register', 'handleImportCSV', 'handleReload']); |
| 60 | 62 | ||
| @@ -72,9 +74,6 @@ | @@ -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 | const isEmptyObject = (value: any) => isObject(value) && !Object.keys(value).length; | 77 | const isEmptyObject = (value: any) => isObject(value) && !Object.keys(value).length; |
| 79 | 78 | ||
| 80 | const ImportInfo = ref<{ id?: string; isCateGory?: string | Boolean }>({}); | 79 | const ImportInfo = ref<{ id?: string; isCateGory?: string | Boolean }>({}); |