|
@@ -27,7 +27,11 @@
|
|
>
|
|
>
|
|
导入Excel
|
|
导入Excel
|
|
</t-button>
|
|
</t-button>
|
|
- <a href="/data.xlsx" download class="ml-12 mt-4 nowrap">
|
|
|
|
|
|
+ <a
|
|
|
|
+ :href="cdn ? cdn + '/v/data.xlsx' : '/data.xlsx'"
|
|
|
|
+ download
|
|
|
|
+ class="ml-12 mt-4 nowrap"
|
|
|
|
+ >
|
|
下载Excel示例
|
|
下载Excel示例
|
|
</a>
|
|
</a>
|
|
<span class="flex-grow"></span>
|
|
<span class="flex-grow"></span>
|
|
@@ -125,6 +129,7 @@ import { MessagePlugin } from 'tdesign-vue-next';
|
|
|
|
|
|
import { importExcel } from '@/services/excel';
|
|
import { importExcel } from '@/services/excel';
|
|
import { typeOptions } from '@/services/common';
|
|
import { typeOptions } from '@/services/common';
|
|
|
|
+import { cdn } from '@/services/api';
|
|
|
|
|
|
const { modelValue } = defineProps<{
|
|
const { modelValue } = defineProps<{
|
|
modelValue: any;
|
|
modelValue: any;
|