From 811425f6bb50007e4dd4d3b487a718c126afc406 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Mon, 24 May 2021 02:36:45 +0800 Subject: [PATCH] double click play stream --- web/index.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/index.js b/web/index.js index 3039085..5dbbe70 100644 --- a/web/index.js +++ b/web/index.js @@ -281,7 +281,7 @@ const component_file_dialog = { this.$emit('close_dialog') }, emit_stream_audio() { - this.file.play_back_type = 'stream', + this.file.play_back_type = 'stream' this.$emit("play_audio", this.file) this.emit_close_dialog() }, @@ -331,7 +331,7 @@ const component_file = { props: ['file'], emits: ['play_audio'], template: ` -{{ file.filename }} +{{ file.filename }} {{ file.foldername }} {{ computed_readable_size }} @@ -352,6 +352,15 @@ const component_file = { } }, methods: { + click_filename() { + if (this.show_dialog) { + this.file.play_back_type = 'stream' + this.$emit('play_audio', this.file) + this.show_dialog = false + } else { + this.show_dialog = true + } + }, show_folder() { this.$router.push({ path: '/search_folders',