|
|
@@ -161,7 +161,7 @@
|
|
|
<script setup lang="ts">
|
|
|
// import { Close, Document, CircleCheck, Warning } from '@element-plus/icons-vue';
|
|
|
import { Close, Document, WarnTriangleFilled, Download } from '@element-plus/icons-vue';
|
|
|
- import { ref } from 'vue';
|
|
|
+ import { computed, ref } from 'vue';
|
|
|
import { genFileId, ElMessage } from 'element-plus';
|
|
|
import type { UploadInstance, UploadProps, UploadRawFile } from 'element-plus';
|
|
|
import { useUserStore } from '@/store/modules/user';
|
|
|
@@ -213,6 +213,10 @@
|
|
|
|
|
|
const { urlPrefix } = useGlobSetting();
|
|
|
|
|
|
+ const importUrl = computed(() => {
|
|
|
+ return urlJoin(urlPrefix, `/user/import`);
|
|
|
+ });
|
|
|
+
|
|
|
const handleDownload = async () => {
|
|
|
//调用后端接口
|
|
|
try {
|