From 578a32628adca621950a147aa36c595bd003bd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=96=87=E5=8F=AF?= <1041367524@qq.com> Date: Sat, 21 May 2022 20:32:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20IM=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/chat/chat.js | 3 +++ src/views/sales/order/index.vue | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/store/modules/chat/chat.js b/src/store/modules/chat/chat.js index f3f6106..0785fed 100644 --- a/src/store/modules/chat/chat.js +++ b/src/store/modules/chat/chat.js @@ -261,6 +261,9 @@ const actions = { case 29: // 客服列表 commit('setCustomerServiceList', content); break; + case 31: // 已读消息 + dispatch('querySession'); + break; default: break; } diff --git a/src/views/sales/order/index.vue b/src/views/sales/order/index.vue index 4564265..a670215 100644 --- a/src/views/sales/order/index.vue +++ b/src/views/sales/order/index.vue @@ -99,18 +99,18 @@ ); watch( () => state.condition, - (value, old) => { + (value) => { store.commit('order/setCondition', _.cloneDeep(value)); - if (value.userId !== old.userId) { - handleSearch(); - } + // if (value.userId !== old.userId) { + // handleSearch && handleSearch(); + // } }, { immediate: true, deep: true } ); watch( () => state.condition.orderStatus, () => { - handleSearch(); + // handleSearch && handleSearch(); }, { deep: true } );