修改文件上传之后的提示

This commit is contained in:
miao 2023-02-15 17:48:53 +08:00 committed by fangxiang
parent fc6b23432c
commit b2bd16128a
1 changed files with 2 additions and 5 deletions

View File

@ -351,7 +351,7 @@
:label="$t('select file') + ':'"
:accept="uploader_accept"
@start="onStartUpload"
@finish="onFailed"
@finish="onfinish"
>
</q-uploader>
<q-space />
@ -1080,10 +1080,8 @@ export default defineComponent({
onStartUpload() {
loading.value = true;
},
async onFailed(info: any) {
let file_list: any = await _request_list_files(path.value);
async onfinish(info: any) {
setTimeout(() => {
if (files.value.length != file_list.files.length) {
$q.notify({
type: "positive",
message: $t.t("file upload") + $t.t("finish") + "!",
@ -1092,7 +1090,6 @@ export default defineComponent({
});
loading.value = false;
uploading.value = false;
}
}, 500);
},
copyFile(file: FileEntity) {