对话框点击任意按钮关闭
This commit is contained in:
@@ -244,11 +244,13 @@ const component_file_dialog = {
|
|||||||
emit_stream_audio() {
|
emit_stream_audio() {
|
||||||
this.file.play_back_type = 'stream',
|
this.file.play_back_type = 'stream',
|
||||||
this.$emit("play_audio", this.file)
|
this.$emit("play_audio", this.file)
|
||||||
|
this.emit_close_dialog()
|
||||||
},
|
},
|
||||||
emit_play_audio() {
|
emit_play_audio() {
|
||||||
console.log("pressed button")
|
console.log("pressed button")
|
||||||
this.file.play_back_type = 'raw'
|
this.file.play_back_type = 'raw'
|
||||||
this.$emit("play_audio", this.file)
|
this.$emit("play_audio", this.file)
|
||||||
|
this.emit_close_dialog()
|
||||||
},
|
},
|
||||||
download_file(file) {
|
download_file(file) {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
@@ -271,6 +273,7 @@ const component_file_dialog = {
|
|||||||
link.click();
|
link.click();
|
||||||
this.download_loaded = 0
|
this.download_loaded = 0
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this.emit_close_dialog()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -323,7 +326,7 @@ const component_file = {
|
|||||||
this.show_dialog = false
|
this.show_dialog = false
|
||||||
},
|
},
|
||||||
dialog() {
|
dialog() {
|
||||||
this.show_dialog = true
|
this.show_dialog = this.show_dialog ? false : true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user