From 008faa78a6867ef7caad949a88c5205a3319ae77 Mon Sep 17 00:00:00 2001 From: blue <825657193@qq.com> Date: Wed, 24 Apr 2024 00:21:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=88=86app=E5=92=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=AB=AF=E7=9A=84storage=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/store/chatStore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/im-uniapp/store/chatStore.js b/im-uniapp/store/chatStore.js index b1cdfc9..2e1ff9d 100644 --- a/im-uniapp/store/chatStore.js +++ b/im-uniapp/store/chatStore.js @@ -302,7 +302,7 @@ export default { return; } let userId = userStore.state.userInfo.id; - let key = "chats-" + userId; + let key = "chats-app-" + userId; let chatsData = { privateMsgMaxId: state.privateMsgMaxId, groupMsgMaxId: state.groupMsgMaxId, @@ -327,7 +327,7 @@ export default { return new Promise((resolve, reject) => { let userId = userStore.state.userInfo.id; uni.getStorage({ - key: "chats-" + userId, + key: "chats-app-" + userId, success(res) { context.commit("initChats", res.data); resolve()