perf: fix loading when upload applet or virtualapp

This commit is contained in:
Eric
2025-06-18 15:53:34 +08:00
committed by Bryan
parent 405054034b
commit 8614798362
2 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<template>
<Dialog
:before-close="handleClose"
:loading-status="!isFinished"
:disabled-status="!isFinished"
:show-cancel="false"
:title="$tc('OfflineUpload')"
v-bind="$attrs"
@@ -104,6 +104,8 @@ export default {
const error = err.response.data
const msg = error?.message || error?.detail || error?.error || JSON.stringify(error)
this.$message.error(msg)
}).finally(() => {
this.$refs.upload.clearFiles()
})
setTimeout(() => {

View File

@@ -1,7 +1,7 @@
<template>
<Dialog
:before-close="handleClose"
:loading-status="!isFinished"
:disabled-status="!isFinished"
:show-cancel="false"
:title="$tc('OfflineUpload')"
v-bind="$attrs"
@@ -102,11 +102,9 @@ export default {
const error = err.response.data
const msg = error?.message || error?.detail || error?.error || JSON.stringify(error)
this.$message.error(msg)
})
setTimeout(() => {
}).finally(() => {
this.$refs.upload.clearFiles()
}, 400)
})
}
}
}