mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
Fix bug: Incorrectly promoted download file termination information
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
+6
-3
@@ -243,9 +243,11 @@ export default {
|
||||
},
|
||||
|
||||
cancelDownfile() {
|
||||
let pkt = rtty.newPacket(rtty.RTTY_PACKET_DOWNFILE, {sid: this.sid, code: 1});
|
||||
this.ws.send(pkt);
|
||||
this.$Message.info(this.$t('Download canceled'));
|
||||
if (this.downfile.downing == true) {
|
||||
let pkt = rtty.newPacket(rtty.RTTY_PACKET_DOWNFILE, {sid: this.sid, code: 1});
|
||||
this.ws.send(pkt);
|
||||
this.$Message.info(this.$t('Download canceled'));
|
||||
}
|
||||
},
|
||||
getQueryString(name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
@@ -333,6 +335,7 @@ export default {
|
||||
a.click();
|
||||
URL.revokeObjectURL(url);
|
||||
this.downfile.modal = false;
|
||||
this.downfile.downing = false;
|
||||
this.$Message.info(this.$t('Download Finish'));
|
||||
}
|
||||
} else if (pkt.typ == rtty.RTTY_PACKET_UPFILE) {
|
||||
|
||||
Reference in New Issue
Block a user