Skip to content

Commit

Permalink
fix: Multiple imports of the same file without response
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Dec 27, 2024
1 parent d39d480 commit 8f7601d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/views/application/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
</div>
<el-divider style="margin: 8px 0" />
<el-upload
ref="elUploadRef"
:file-list="[]"
action="#"
multiple
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
})
Expand Down

0 comments on commit 8f7601d

Please sign in to comment.