feature:url调整让上传文件支持/模式

This commit is contained in:
pixelMax(奇淼
2024-06-28 11:37:59 +08:00
parent 737c051466
commit 24e4d05157
5 changed files with 16 additions and 6 deletions
+2 -1
View File
@@ -2,7 +2,7 @@
<div>
<el-upload
multiple
:action="`${path}/fileUploadAndDownload/upload?noSave=1`"
:action="`${getBaseUrl()}/fileUploadAndDownload/upload?noSave=1`"
:on-error="uploadError"
:on-success="uploadSuccess"
:show-file-list="true"
@@ -21,6 +21,7 @@
import { ref, watch } from 'vue'
import { ElMessage } from 'element-plus'
import { useUserStore } from '@/pinia/modules/user'
import { getBaseUrl } from '@/utils/format'
defineOptions({
name: 'UploadCommon',