修改文件上传之后的提示
This commit is contained in:
parent
fc6b23432c
commit
b2bd16128a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue