From 3a2db11b06b366e00cc953175885ed7357605356 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Wed, 26 May 2021 15:16:38 +0800 Subject: [PATCH] bug: fix raw button switch to prepare --- web/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/index.js b/web/index.js index 0005c06..f9e1ac6 100644 --- a/web/index.js +++ b/web/index.js @@ -600,7 +600,11 @@ const component_audio_player = { } }, raw() { - this.set_playing_url() + if (this.prepare) { + this.prepare_func() + } else { + this.set_playing_url() + } }, prepare() { this.playing_file = {}