From 62af91faee68d71e3c6405599d83bf35574d0591 Mon Sep 17 00:00:00 2001 From: lanyeeee <1210347077@qq.com> Date: Wed, 30 Oct 2024 08:52:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9E=E7=8E=B0=E7=AB=A0=E8=8A=82?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ChapterPane.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/ChapterPane.vue b/src/components/ChapterPane.vue index 0f1d7bb..9355c06 100644 --- a/src/components/ChapterPane.vue +++ b/src/components/ChapterPane.vue @@ -115,8 +115,16 @@ async function downloadChapters() { } } -// TODO: 实现刷新按钮的功能 async function refreshChapters() { + if (selectedAlbum.value === undefined) { + return; + } + const result = await commands.getAlbum(selectedAlbum.value.id); + if (result.status === "error") { + console.error(result.error); + return; + } + selectedAlbum.value = result.data; }