fix: ui: A abnormity caused by click 'OK' when no file selected.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2021-12-15 09:05:21 +00:00
parent 56d8e3365e
commit 80c8a0868d
+5
View File
@@ -126,6 +126,11 @@ export default {
fr.readAsArrayBuffer(blob);
},
doUploadFile() {
if (!this.file.file) {
this.onUploadDialogClosed();
return;
}
this.term.focus();
if (this.file.size > 0xffffffff) {