Skip to content

Commit 32b9e9c

Browse files
authored
fix: Multiple imports of the same file without response (#1933)
1 parent 2fd1464 commit 32b9e9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/views/application/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
</div>
4646
<el-divider style="margin: 8px 0" />
4747
<el-upload
48+
ref="elUploadRef"
4849
:file-list="[]"
4950
action="#"
5051
multiple
@@ -179,7 +180,7 @@ import { isWorkFlow } from '@/utils/application'
179180
import { ValidType, ValidCount } from '@/enums/common'
180181
import { t } from '@/locales'
181182
import useStore from '@/stores'
182-
183+
const elUploadRef = ref<any>()
183184
const { application, user, common } = useStore()
184185
const router = useRouter()
185186
@@ -233,6 +234,7 @@ const exportApplication = (application: any) => {
233234
const importApplication = (file: any) => {
234235
const formData = new FormData()
235236
formData.append('file', file.raw, file.name)
237+
elUploadRef.value.clearFiles()
236238
applicationApi.importApplication(formData, loading).then((ok) => {
237239
searchHandle()
238240
})

0 commit comments

Comments
 (0)