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));