修改文件上传之后的提示

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