This commit is contained in:
Zyronon
2025-12-31 00:11:27 +08:00
parent 7b9be69838
commit 043edf7f39

View File

@@ -131,10 +131,8 @@ onMounted(() => {
onUnmounted(() => {
let cache = getPracticeWordCache()
//如果有缓存,则更新花费的时间;因为用户不输入不会保存数据,但有可能不是初始阶段(比如默写,听写等),所以需要更新花费的时间
if (cache) {
cache.statStoreData.spend = statStore.spend
setPracticeWordCache(cache)
savePracticeData()
}
timer && clearInterval(timer)
})