From e50cab447ff72f5f368409cf61fedcf36710f7f3 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Tue, 25 May 2021 13:54:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=92=AD=E6=94=BE=E5=99=A8?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E8=AE=BF=E9=97=AE=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=20=E5=92=8C=20=E8=8E=B7=E5=8F=96=20prepared=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=8E=9F=20file.filesize=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/index.js b/web/index.js index 0ce95ac..15879ad 100644 --- a/web/index.js +++ b/web/index.js @@ -536,7 +536,7 @@ const component_audio_player = { this.$router.push({ path: '/search_folders', query: { - folder_id: this.this_file.folder_id, + folder_id: this.file.folder_id, } }) }, @@ -555,7 +555,6 @@ const component_audio_player = { this.is_preparing = false var file = this.file file.play_back_type = 'cached_stream' - file.filesize = response.data.filesize this.playing_file = file }) }, @@ -583,6 +582,9 @@ const component_audio_player = { return 'Preparing...' } let filesize = this.playing_file.filesize + if (this.prepare) { + filesize = this.prepared_filesize + } if (filesize < 1024 * 1024) { return filesize }