From 4e3ad5816f4f916f7bb664e2999f09e09d713712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Fri, 20 Sep 2024 16:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=9A=90=E8=97=8F=E5=B7=B2=E5=AE=8C=E6=88=90=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/userAchi/tua-achi-list.vue | 2 +- src/pages/common/Achievements.vue | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/userAchi/tua-achi-list.vue b/src/components/userAchi/tua-achi-list.vue index a15d8c68..ecfa1bd1 100644 --- a/src/components/userAchi/tua-achi-list.vue +++ b/src/components/userAchi/tua-achi-list.vue @@ -63,7 +63,7 @@ const showNc = ref(false); const showOverlay = ref(false); const renderAchi = computed>(() => { - if (props.hideFin) return achievements.value.filter((a) => a.isCompleted); + if (props.hideFin) return achievements.value.filter((a) => !a.isCompleted); return achievements.value; }); diff --git a/src/pages/common/Achievements.vue b/src/pages/common/Achievements.vue index dba3c770..410a2f3b 100644 --- a/src/pages/common/Achievements.vue +++ b/src/pages/common/Achievements.vue @@ -98,11 +98,6 @@ let achiListener: UnlistenFn | null = null; async function switchHideFin() { const text = hideFin.value ? "显示已完成" : "隐藏已完成"; - const res = await showConfirm({ title: "是否切换显示已完成?", text }); - if (!res) { - showSnackbar({ color: "cancel", text: "已取消切换" }); - return; - } hideFin.value = !hideFin.value; showSnackbar({ text: `已${text}`, color: "success" }); }