🐛 修复切换隐藏已完成逻辑错误

This commit is contained in:
目棃
2024-09-20 16:19:36 +08:00
parent 1dc5aa0ef8
commit 4e3ad5816f
2 changed files with 1 additions and 6 deletions

View File

@@ -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" });
}