From a14931a64ee8fc2bb866f090043f78a082112261 Mon Sep 17 00:00:00 2001 From: linxi Date: Wed, 20 Nov 2024 15:50:04 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A2581=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E5=8E=86=E5=8F=B2=E6=90=9C?= =?UTF-8?q?=E7=B4=A2--=E9=80=80=E5=87=BA=E9=87=8D=E6=96=B0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=90=8E=EF=BC=8C=E5=8E=86=E5=8F=B2=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E8=A2=AB=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/store/cookie.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/store/cookie.js b/utils/store/cookie.js index 958186d..c1e5c89 100644 --- a/utils/store/cookie.js +++ b/utils/store/cookie.js @@ -33,8 +33,8 @@ function clearAll() { // uni.clearStorage() const res = uni.getStorageInfoSync() res.keys.map((item) => { - // 不要清除spread和redirect、页面埋点数据 - if ([pageViewDataCacheKey, 'redirect', 'spread'].includes(item)) { + // 不要清除spread和redirect、页面埋点和历史搜索数据数据, + if ([pageViewDataCacheKey, 'redirect', 'spread', 'historyKey'].includes(item)) { return } remove(item)