From 043edf7f39512e44195477ea340e56c12f5a0e5d Mon Sep 17 00:00:00 2001 From: Zyronon Date: Wed, 31 Dec 2025 00:11:27 +0800 Subject: [PATCH] wip --- src/pages/word/PracticeWords.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/word/PracticeWords.vue b/src/pages/word/PracticeWords.vue index c96b495c..23261195 100644 --- a/src/pages/word/PracticeWords.vue +++ b/src/pages/word/PracticeWords.vue @@ -131,10 +131,8 @@ onMounted(() => { onUnmounted(() => { let cache = getPracticeWordCache() - //如果有缓存,则更新花费的时间;因为用户不输入不会保存数据,但有可能不是初始阶段(比如默写,听写等),所以需要更新花费的时间 if (cache) { - cache.statStoreData.spend = statStore.spend - setPracticeWordCache(cache) + savePracticeData() } timer && clearInterval(timer) })