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,