处理下载保存文件,弹窗关闭的问题
This commit is contained in:
parent
2761b0da21
commit
c9ca7c1a5e
|
@ -98,7 +98,6 @@ export default {
|
||||||
},
|
},
|
||||||
onCancel() {
|
onCancel() {
|
||||||
if (_this.fileName) {
|
if (_this.fileName) {
|
||||||
_this.visible = false
|
|
||||||
saveAs(strData, `${_this.fileName}.txt`)
|
saveAs(strData, `${_this.fileName}.txt`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -71,7 +71,6 @@ export default {
|
||||||
},
|
},
|
||||||
onCancel() {
|
onCancel() {
|
||||||
if (_this.fileName) {
|
if (_this.fileName) {
|
||||||
_this.visible = false
|
|
||||||
saveAs(strData, `${_this.fileName}.txt`)
|
saveAs(strData, `${_this.fileName}.txt`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -155,7 +155,6 @@ export default {
|
||||||
},
|
},
|
||||||
onCancel() {
|
onCancel() {
|
||||||
if (_this.fileName) {
|
if (_this.fileName) {
|
||||||
_this.visible = false
|
|
||||||
saveAs(strData, `${_this.fileName}.txt`)
|
saveAs(strData, `${_this.fileName}.txt`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -79,7 +79,6 @@ export default {
|
||||||
},
|
},
|
||||||
onCancel() {
|
onCancel() {
|
||||||
if (_this.fileName) {
|
if (_this.fileName) {
|
||||||
_this.visible = false
|
|
||||||
saveAs(strData, `${_this.fileName}.txt`)
|
saveAs(strData, `${_this.fileName}.txt`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -103,7 +103,6 @@ export default {
|
||||||
},
|
},
|
||||||
onCancel() {
|
onCancel() {
|
||||||
if (_this.fileName) {
|
if (_this.fileName) {
|
||||||
_this.visible = false
|
|
||||||
saveAs(strData, `${_this.fileName}.txt`)
|
saveAs(strData, `${_this.fileName}.txt`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -65,7 +65,6 @@ export default {
|
||||||
},
|
},
|
||||||
onCancel() {
|
onCancel() {
|
||||||
if (_this.fileName) {
|
if (_this.fileName) {
|
||||||
_this.visible = false
|
|
||||||
saveAs(strData, `${_this.fileName}.txt`)
|
saveAs(strData, `${_this.fileName}.txt`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user