From 5cf24f95fe00aa7bc51cf54d4ad520a707868281 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Mon, 24 May 2021 21:01:01 +0800 Subject: [PATCH] player stop --- web/index.html | 2 +- web/index.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/web/index.html b/web/index.html index 322b1cf..d3d7310 100644 --- a/web/index.html +++ b/web/index.html @@ -29,7 +29,7 @@ diff --git a/web/index.js b/web/index.js index 3b7f2d4..7afe616 100644 --- a/web/index.js +++ b/web/index.js @@ -477,6 +477,7 @@ const component_file = { } const component_audio_player = { + emits: ['stop'], data() { return { loop: true, @@ -499,6 +500,7 @@ const component_audio_player = { +
@@ -510,6 +512,9 @@ const component_audio_player = { `, methods: { + emit_stop() { + this.$emit('stop') + }, dialog() { this.show_dialog = this.show_dialog ? false : true }, @@ -764,6 +769,9 @@ const app = Vue.createApp({ } }, methods: { + stop() { + this.playing_audio_file = {} + }, set_token(token) { this.token = token },