From b62b42115706824da0e7cffdd743c3d13c25669e Mon Sep 17 00:00:00 2001 From: shanhexi Date: Tue, 17 Oct 2023 23:04:22 +0800 Subject: [PATCH] feat:localStorage v3 --- chat2db-client/src/utils/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat2db-client/src/utils/index.ts b/chat2db-client/src/utils/index.ts index d64aaa552..b85e8d3d5 100644 --- a/chat2db-client/src/utils/index.ts +++ b/chat2db-client/src/utils/index.ts @@ -144,9 +144,9 @@ export function findObjListValue(list: T[], key: K, value: // 清理就版本不兼容的LocalStorage export function clearOlderLocalStorage() { - if (localStorage.getItem('app-local-storage-versions') !== 'v2') { + if (localStorage.getItem('app-local-storage-versions') !== 'v3') { localStorage.clear(); - localStorage.setItem('app-local-storage-versions', 'v2'); + localStorage.setItem('app-local-storage-versions', 'v3'); } }