From 67f466d43c41b21a16bf362093e7968833cfd527 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Mon, 26 May 2025 08:33:35 +1000 Subject: [PATCH] =?UTF-8?q?refactor(Playroom):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E9=98=9F=E5=88=97=E5=88=97=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=92=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整代码缩进和换行以提升可读性 - 修改播放队列项的点击逻辑,避免重复触发相同索引的播放 - 统一格式化字符串模板和条件判断的写法 --- src/pages/Playroom.vue | 47 +++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/src/pages/Playroom.vue b/src/pages/Playroom.vue index bc0948b..e503d36 100644 --- a/src/pages/Playroom.vue +++ b/src/pages/Playroom.vue @@ -148,7 +148,8 @@ function makePlayQueueListDismiss() {
-
{{ playQueueStore.list[playQueueStore.currentIndex].song.name }} +
+ {{ playQueueStore.list[playQueueStore.currentIndex].song.name }}
{{ artistsOrganize(playQueueStore.list[playQueueStore.currentIndex].song.artists ?? []) }} — @@ -172,7 +173,7 @@ function makePlayQueueListDismiss() { @click="displayTimeLeft = !displayTimeLeft">{{ `${displayTimeLeft ? '-' : ''}${timeFormatter(displayTimeLeft ? Math.floor(playQueueStore.duration) - Math.floor(playQueueStore.currentTime) : playQueueStore.duration)}` }}
- +
@@ -180,7 +181,8 @@ function makePlayQueueListDismiss() { -
@@ -221,20 +223,29 @@ function makePlayQueueListDismiss() {
- -
+ +
播放队列
-
- -
@@ -242,21 +253,29 @@ function makePlayQueueListDismiss() {