fix: Multiple imports of the same file without response (#1933)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2024-12-27 17:28:27 +08:00 committed by GitHub
parent 2fd1464ccb
commit 32b9e9c068
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,7 @@
</div>
<el-divider style="margin: 8px 0" />
<el-upload
ref="elUploadRef"
:file-list="[]"
action="#"
multiple
@ -179,7 +180,7 @@ import { isWorkFlow } from '@/utils/application'
import { ValidType, ValidCount } from '@/enums/common'
import { t } from '@/locales'
import useStore from '@/stores'
const elUploadRef = ref<any>()
const { application, user, common } = useStore()
const router = useRouter()
@ -233,6 +234,7 @@ const exportApplication = (application: any) => {
const importApplication = (file: any) => {
const formData = new FormData()
formData.append('file', file.raw, file.name)
elUploadRef.value.clearFiles()
applicationApi.importApplication(formData, loading).then((ok) => {
searchHandle()
})