From 63d76182c60963c60717e2564c797e7ff0ffdcf5 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Thu, 10 Apr 2025 00:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E5=8E=BB=E6=8E=89to?= =?UTF-8?q?ast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Mine2.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/Mine2.tsx b/src/pages/Mine2.tsx index 789ef25..65f1581 100644 --- a/src/pages/Mine2.tsx +++ b/src/pages/Mine2.tsx @@ -12,9 +12,7 @@ export default function Mine2() { const onSync = async () => { const res = await dispatch(syncBaseData()).unwrap(); - if (res.success) { - Toast.show('同步完成'); - } else { + if (!res.success) { Toast.show(res.message); } };