From 9798941a9de6e9e0ac7204bca95faf16d41b3067 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Fri, 29 Aug 2025 18:18:58 +0800 Subject: [PATCH] no message --- root/NEUIKit/pages/Chat/index.vue | 1 + root/NEUIKit/pages/Chat/message/message-input.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/root/NEUIKit/pages/Chat/index.vue b/root/NEUIKit/pages/Chat/index.vue index 33d491e..f5596dc 100644 --- a/root/NEUIKit/pages/Chat/index.vue +++ b/root/NEUIKit/pages/Chat/index.vue @@ -437,6 +437,7 @@ onUnmounted(() => { connectedWatch(); msgsWatch(); conversationTypeWatch(); + uni.removeStorageSync('im_sendParams'); }); const query = ref({ page: 1, diff --git a/root/NEUIKit/pages/Chat/message/message-input.vue b/root/NEUIKit/pages/Chat/message/message-input.vue index dee120f..fcc1740 100644 --- a/root/NEUIKit/pages/Chat/message/message-input.vue +++ b/root/NEUIKit/pages/Chat/message/message-input.vue @@ -807,7 +807,9 @@ const screenHeight = ref(0); screenHeight.value = uni.getSystemInfoSync().windowHeight; const chooseData = ref({}); onMounted(() => { - chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail; + if(uni.getStorageSync("im_sendParams")){ + chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail; + } uninstallTeamWatch = autorun(() => { if (props.conversationType === V2NIMConst.V2NIMConversationType.V2NIM_CONVERSATION_TYPE_TEAM) { const _team: V2NIMTeam = deepClone(uni.$UIKitStore.teamStore.teams.get(props.to));