mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: fix loading when upload applet or virtualapp
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user