优化: 将本地存储从localStorage迁移至IndexedDB以支持更大数据量存储

This commit is contained in:
yuantao
2025-10-17 10:17:49 +08:00
parent ae375aee8c
commit 0a89eda20b
9 changed files with 505 additions and 530 deletions

View File

@@ -1,310 +0,0 @@
prepare.js:1 🍍 "app" store installed 🆕
NoteListPage.vue:291 搜索栏获得焦点
NoteListPage.vue:296 搜索栏失去焦点
NoteListPage.vue:291 搜索栏获得焦点
NoteListPage.vue:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at NoteListPage.vue:104:57
at wrappedFn (reactivity.esm-bundler.js:878:19)
at Array.filter (<anonymous>)
at apply (reactivity.esm-bundler.js:886:27)
at Proxy.filter (reactivity.esm-bundler.js:778:12)
at ComputedRefImpl.fn (NoteListPage.vue:102:22)
at refreshComputed (reactivity.esm-bundler.js:391:28)
at isDirty (reactivity.esm-bundler.js:362:68)
at refreshComputed (reactivity.esm-bundler.js:380:90)
at get value (reactivity.esm-bundler.js:1655:5)
(匿名) @ NoteListPage.vue:104
wrappedFn @ reactivity.esm-bundler.js:878
apply @ reactivity.esm-bundler.js:886
filter @ reactivity.esm-bundler.js:778
(匿名) @ NoteListPage.vue:102
refreshComputed @ reactivity.esm-bundler.js:391
isDirty @ reactivity.esm-bundler.js:362
refreshComputed @ reactivity.esm-bundler.js:380
get value @ reactivity.esm-bundler.js:1655
unref @ reactivity.esm-bundler.js:1500
get @ reactivity.esm-bundler.js:1506
(匿名) @ NoteListPage.vue:35
renderFnWithContext @ runtime-core.esm-bundler.js:695
(匿名) @ runtime.js:286
renderComponentRoot @ runtime-core.esm-bundler.js:6590
componentUpdateFn @ runtime-core.esm-bundler.js:5468
run @ reactivity.esm-bundler.js:237
runIfDirty @ reactivity.esm-bundler.js:275
callWithErrorHandling @ runtime-core.esm-bundler.js:199
flushJobs @ runtime-core.esm-bundler.js:408
Promise.then
queueFlush @ runtime-core.esm-bundler.js:322
queueJob @ runtime-core.esm-bundler.js:317
effect2.scheduler @ runtime-core.esm-bundler.js:5519
trigger @ reactivity.esm-bundler.js:265
endBatch @ reactivity.esm-bundler.js:323
notify @ reactivity.esm-bundler.js:614
trigger @ reactivity.esm-bundler.js:588
set value @ reactivity.esm-bundler.js:1472
set @ reactivity.esm-bundler.js:1510
_createVNode.onUpdate:modelValue._cache.<computed>._cache.<computed> @ NoteListPage.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
emit @ runtime-core.esm-bundler.js:6473
(匿名) @ runtime-core.esm-bundler.js:8188
handleInput @ Search.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
invoker @ runtime-dom.esm-bundler.js:730
NoteListPage.vue:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at NoteListPage.vue:104:57
at wrappedFn (reactivity.esm-bundler.js:878:19)
at Array.filter (<anonymous>)
at apply (reactivity.esm-bundler.js:886:27)
at Proxy.filter (reactivity.esm-bundler.js:778:12)
at ComputedRefImpl.fn (NoteListPage.vue:102:22)
at refreshComputed (reactivity.esm-bundler.js:391:28)
at get value (reactivity.esm-bundler.js:1655:5)
at ComputedRefImpl.fn (NoteListPage.vue:130:28)
at refreshComputed (reactivity.esm-bundler.js:391:28)
(匿名) @ NoteListPage.vue:104
wrappedFn @ reactivity.esm-bundler.js:878
apply @ reactivity.esm-bundler.js:886
filter @ reactivity.esm-bundler.js:778
(匿名) @ NoteListPage.vue:102
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
(匿名) @ NoteListPage.vue:130
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
unref @ reactivity.esm-bundler.js:1500
get @ reactivity.esm-bundler.js:1506
(匿名) @ NoteListPage.vue:35
renderFnWithContext @ runtime-core.esm-bundler.js:695
(匿名) @ runtime.js:286
renderComponentRoot @ runtime-core.esm-bundler.js:6590
componentUpdateFn @ runtime-core.esm-bundler.js:5468
run @ reactivity.esm-bundler.js:237
runIfDirty @ reactivity.esm-bundler.js:275
callWithErrorHandling @ runtime-core.esm-bundler.js:199
flushJobs @ runtime-core.esm-bundler.js:408
Promise.then
queueFlush @ runtime-core.esm-bundler.js:322
queueJob @ runtime-core.esm-bundler.js:317
effect2.scheduler @ runtime-core.esm-bundler.js:5519
trigger @ reactivity.esm-bundler.js:265
endBatch @ reactivity.esm-bundler.js:323
notify @ reactivity.esm-bundler.js:614
trigger @ reactivity.esm-bundler.js:588
set value @ reactivity.esm-bundler.js:1472
set @ reactivity.esm-bundler.js:1510
_createVNode.onUpdate:modelValue._cache.<computed>._cache.<computed> @ NoteListPage.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
emit @ runtime-core.esm-bundler.js:6473
(匿名) @ runtime-core.esm-bundler.js:8188
handleInput @ Search.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
invoker @ runtime-dom.esm-bundler.js:730
NoteListPage.vue:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at NoteListPage.vue:104:57
at wrappedFn (reactivity.esm-bundler.js:878:19)
at Array.filter (<anonymous>)
at apply (reactivity.esm-bundler.js:886:27)
at Proxy.filter (reactivity.esm-bundler.js:778:12)
at ComputedRefImpl.fn (NoteListPage.vue:102:22)
at refreshComputed (reactivity.esm-bundler.js:391:28)
at get value (reactivity.esm-bundler.js:1655:5)
at ComputedRefImpl.fn (NoteListPage.vue:130:28)
at refreshComputed (reactivity.esm-bundler.js:391:28)
(匿名) @ NoteListPage.vue:104
wrappedFn @ reactivity.esm-bundler.js:878
apply @ reactivity.esm-bundler.js:886
filter @ reactivity.esm-bundler.js:778
(匿名) @ NoteListPage.vue:102
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
(匿名) @ NoteListPage.vue:130
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
unref @ reactivity.esm-bundler.js:1500
get @ reactivity.esm-bundler.js:1506
(匿名) @ NoteListPage.vue:35
renderFnWithContext @ runtime-core.esm-bundler.js:695
(匿名) @ runtime.js:286
renderComponentRoot @ runtime-core.esm-bundler.js:6590
componentUpdateFn @ runtime-core.esm-bundler.js:5468
run @ reactivity.esm-bundler.js:237
runIfDirty @ reactivity.esm-bundler.js:275
callWithErrorHandling @ runtime-core.esm-bundler.js:199
flushJobs @ runtime-core.esm-bundler.js:408
Promise.then
queueFlush @ runtime-core.esm-bundler.js:322
queueJob @ runtime-core.esm-bundler.js:317
effect2.scheduler @ runtime-core.esm-bundler.js:5519
trigger @ reactivity.esm-bundler.js:265
endBatch @ reactivity.esm-bundler.js:323
notify @ reactivity.esm-bundler.js:614
trigger @ reactivity.esm-bundler.js:588
set value @ reactivity.esm-bundler.js:1472
set @ reactivity.esm-bundler.js:1510
_createVNode.onUpdate:modelValue._cache.<computed>._cache.<computed> @ NoteListPage.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
emit @ runtime-core.esm-bundler.js:6473
(匿名) @ runtime-core.esm-bundler.js:8188
handleInput @ Search.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
invoker @ runtime-dom.esm-bundler.js:730
NoteListPage.vue:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at NoteListPage.vue:104:57
at wrappedFn (reactivity.esm-bundler.js:878:19)
at Array.filter (<anonymous>)
at apply (reactivity.esm-bundler.js:886:27)
at Proxy.filter (reactivity.esm-bundler.js:778:12)
at ComputedRefImpl.fn (NoteListPage.vue:102:22)
at refreshComputed (reactivity.esm-bundler.js:391:28)
at get value (reactivity.esm-bundler.js:1655:5)
at ComputedRefImpl.fn (NoteListPage.vue:130:28)
at refreshComputed (reactivity.esm-bundler.js:391:28)
(匿名) @ NoteListPage.vue:104
wrappedFn @ reactivity.esm-bundler.js:878
apply @ reactivity.esm-bundler.js:886
filter @ reactivity.esm-bundler.js:778
(匿名) @ NoteListPage.vue:102
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
(匿名) @ NoteListPage.vue:130
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
unref @ reactivity.esm-bundler.js:1500
get @ reactivity.esm-bundler.js:1506
(匿名) @ NoteListPage.vue:35
renderFnWithContext @ runtime-core.esm-bundler.js:695
(匿名) @ runtime.js:286
renderComponentRoot @ runtime-core.esm-bundler.js:6590
componentUpdateFn @ runtime-core.esm-bundler.js:5468
run @ reactivity.esm-bundler.js:237
runIfDirty @ reactivity.esm-bundler.js:275
callWithErrorHandling @ runtime-core.esm-bundler.js:199
flushJobs @ runtime-core.esm-bundler.js:408
Promise.then
queueFlush @ runtime-core.esm-bundler.js:322
queueJob @ runtime-core.esm-bundler.js:317
effect2.scheduler @ runtime-core.esm-bundler.js:5519
trigger @ reactivity.esm-bundler.js:265
endBatch @ reactivity.esm-bundler.js:323
notify @ reactivity.esm-bundler.js:614
trigger @ reactivity.esm-bundler.js:588
set value @ reactivity.esm-bundler.js:1472
set @ reactivity.esm-bundler.js:1510
_createVNode.onUpdate:modelValue._cache.<computed>._cache.<computed> @ NoteListPage.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
emit @ runtime-core.esm-bundler.js:6473
(匿名) @ runtime-core.esm-bundler.js:8188
handleInput @ Search.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
invoker @ runtime-dom.esm-bundler.js:730
NoteListPage.vue:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at NoteListPage.vue:104:57
at wrappedFn (reactivity.esm-bundler.js:878:19)
at Array.filter (<anonymous>)
at apply (reactivity.esm-bundler.js:886:27)
at Proxy.filter (reactivity.esm-bundler.js:778:12)
at ComputedRefImpl.fn (NoteListPage.vue:102:22)
at refreshComputed (reactivity.esm-bundler.js:391:28)
at get value (reactivity.esm-bundler.js:1655:5)
at ComputedRefImpl.fn (NoteListPage.vue:130:28)
at refreshComputed (reactivity.esm-bundler.js:391:28)
(匿名) @ NoteListPage.vue:104
wrappedFn @ reactivity.esm-bundler.js:878
apply @ reactivity.esm-bundler.js:886
filter @ reactivity.esm-bundler.js:778
(匿名) @ NoteListPage.vue:102
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
(匿名) @ NoteListPage.vue:130
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
unref @ reactivity.esm-bundler.js:1500
get @ reactivity.esm-bundler.js:1506
(匿名) @ NoteListPage.vue:35
renderFnWithContext @ runtime-core.esm-bundler.js:695
(匿名) @ runtime.js:286
renderComponentRoot @ runtime-core.esm-bundler.js:6590
componentUpdateFn @ runtime-core.esm-bundler.js:5468
run @ reactivity.esm-bundler.js:237
runIfDirty @ reactivity.esm-bundler.js:275
callWithErrorHandling @ runtime-core.esm-bundler.js:199
flushJobs @ runtime-core.esm-bundler.js:408
Promise.then
queueFlush @ runtime-core.esm-bundler.js:322
queueJob @ runtime-core.esm-bundler.js:317
effect2.scheduler @ runtime-core.esm-bundler.js:5519
trigger @ reactivity.esm-bundler.js:265
endBatch @ reactivity.esm-bundler.js:323
notify @ reactivity.esm-bundler.js:614
trigger @ reactivity.esm-bundler.js:588
set value @ reactivity.esm-bundler.js:1472
set @ reactivity.esm-bundler.js:1510
_createVNode.onUpdate:modelValue._cache.<computed>._cache.<computed> @ NoteListPage.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
emit @ runtime-core.esm-bundler.js:6473
(匿名) @ runtime-core.esm-bundler.js:8188
handleInput @ Search.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
invoker @ runtime-dom.esm-bundler.js:730
NoteListPage.vue:104 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at NoteListPage.vue:104:57
at wrappedFn (reactivity.esm-bundler.js:878:19)
at Array.filter (<anonymous>)
at apply (reactivity.esm-bundler.js:886:27)
at Proxy.filter (reactivity.esm-bundler.js:778:12)
at ComputedRefImpl.fn (NoteListPage.vue:102:22)
at refreshComputed (reactivity.esm-bundler.js:391:28)
at get value (reactivity.esm-bundler.js:1655:5)
at ComputedRefImpl.fn (NoteListPage.vue:130:28)
at refreshComputed (reactivity.esm-bundler.js:391:28)
(匿名) @ NoteListPage.vue:104
wrappedFn @ reactivity.esm-bundler.js:878
apply @ reactivity.esm-bundler.js:886
filter @ reactivity.esm-bundler.js:778
(匿名) @ NoteListPage.vue:102
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
(匿名) @ NoteListPage.vue:130
refreshComputed @ reactivity.esm-bundler.js:391
get value @ reactivity.esm-bundler.js:1655
unref @ reactivity.esm-bundler.js:1500
get @ reactivity.esm-bundler.js:1506
(匿名) @ NoteListPage.vue:35
renderFnWithContext @ runtime-core.esm-bundler.js:695
(匿名) @ runtime.js:286
renderComponentRoot @ runtime-core.esm-bundler.js:6590
componentUpdateFn @ runtime-core.esm-bundler.js:5468
run @ reactivity.esm-bundler.js:237
runIfDirty @ reactivity.esm-bundler.js:275
callWithErrorHandling @ runtime-core.esm-bundler.js:199
flushJobs @ runtime-core.esm-bundler.js:408
Promise.then
queueFlush @ runtime-core.esm-bundler.js:322
queueJob @ runtime-core.esm-bundler.js:317
effect2.scheduler @ runtime-core.esm-bundler.js:5519
trigger @ reactivity.esm-bundler.js:265
endBatch @ reactivity.esm-bundler.js:323
notify @ reactivity.esm-bundler.js:614
trigger @ reactivity.esm-bundler.js:588
set value @ reactivity.esm-bundler.js:1472
set @ reactivity.esm-bundler.js:1510
_createVNode.onUpdate:modelValue._cache.<computed>._cache.<computed> @ NoteListPage.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
emit @ runtime-core.esm-bundler.js:6473
(匿名) @ runtime-core.esm-bundler.js:8188
handleInput @ Search.vue:31
callWithErrorHandling @ runtime-core.esm-bundler.js:199
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:206
invoker @ runtime-dom.esm-bundler.js:730
NoteListPage.vue:296 搜索栏失去焦点