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 },