From cb80f8152cd55ddd6b7fd586585da1b57dc98fdb Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sun, 23 May 2021 20:11:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=BB=BB=E6=84=8F=E6=8C=89=E9=92=AE=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/index.js b/web/index.js index 867efce..92c9cb6 100644 --- a/web/index.js +++ b/web/index.js @@ -244,11 +244,13 @@ const component_file_dialog = { emit_stream_audio() { this.file.play_back_type = 'stream', this.$emit("play_audio", this.file) + this.emit_close_dialog() }, emit_play_audio() { console.log("pressed button") this.file.play_back_type = 'raw' this.$emit("play_audio", this.file) + this.emit_close_dialog() }, download_file(file) { this.disabled = true @@ -271,6 +273,7 @@ const component_file_dialog = { link.click(); this.download_loaded = 0 this.disabled = false + this.emit_close_dialog() }) }, }, @@ -323,7 +326,7 @@ const component_file = { this.show_dialog = false }, dialog() { - this.show_dialog = true + this.show_dialog = this.show_dialog ? false : true }, }, computed: {