Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit f6805d5

Browse files
committed
Fix: 多次解压错误
1 parent 85e2335 commit f6805d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/app/views/FileManager/selecctUnzipCode.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export default {
7171
{ label: "面板/Linux(UTF8)", value: "utf-8" }
7272
],
7373
selected: "",
74-
func: null
74+
func: null,
75+
reject: null
7576
};
7677
},
7778
watch: {
@@ -82,7 +83,8 @@ export default {
8283
methods: {
8384
prompt() {
8485
this.show();
85-
return new Promise((ok) => {
86+
return new Promise((ok, reject) => {
87+
this.reject = reject;
8688
event.on("submit", (v) => ok(v));
8789
});
8890
},
@@ -92,6 +94,8 @@ export default {
9294
},
9395
close() {
9496
this.v = false;
97+
if (this.reject) this.reject(new Error("已取消"));
98+
this.reject = null;
9599
this.$emit("update:visible", false);
96100
},
97101
sumbit() {

0 commit comments

Comments
 (0)