Skip to content

Commit b62b421

Browse files
committed
feat:localStorage v3
1 parent 5883fe6 commit b62b421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chat2db-client/src/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ export function findObjListValue<T, K extends keyof T>(list: T[], key: K, value:
144144

145145
// 清理就版本不兼容的LocalStorage
146146
export function clearOlderLocalStorage() {
147-
if (localStorage.getItem('app-local-storage-versions') !== 'v2') {
147+
if (localStorage.getItem('app-local-storage-versions') !== 'v3') {
148148
localStorage.clear();
149-
localStorage.setItem('app-local-storage-versions', 'v2');
149+
localStorage.setItem('app-local-storage-versions', 'v3');
150150
}
151151
}
152152

0 commit comments

Comments
 (0)