From e988085d427c3c7fcd361ddd1681c92857646e32 Mon Sep 17 00:00:00 2001 From: masquevil Date: Mon, 29 Apr 2024 17:28:08 +0800 Subject: [PATCH] =?UTF-8?q?[coc-card]=20fix=20=E8=87=AA=E5=8A=A8=E4=BF=9D?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/coc-card/hooks/useAutoSave.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/coc-card/hooks/useAutoSave.ts b/src/pages/coc-card/hooks/useAutoSave.ts index 10369c0..249e4b7 100644 --- a/src/pages/coc-card/hooks/useAutoSave.ts +++ b/src/pages/coc-card/hooks/useAutoSave.ts @@ -15,7 +15,7 @@ export default function useAutoSave(pcRef: Ref) { const { timeAgo } = useZhTimeAgo(lastModified || Date.now()); watch( - pcRef.value, + () => pcRef.value, () => { ls.setItem('autoSaved', { pc: pcRef.value,