Browse Source

判断 客服号

潘超林 8 months ago
parent
commit
373e81446a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      TUIKit/components/TUIChat/message-list/index.vue

+ 5 - 2
TUIKit/components/TUIChat/message-list/index.vue

@@ -346,9 +346,12 @@ onMounted(() => {
   setInstanceMapping("messageList", thisInstance);
 
   uni.$on("scroll-to-bottom", scrollToLatestMessage);
-  isMerchant();
-});
 
+  let personId = uni.getStorageSync("personId");
+  if (personId != "001") {
+    isMerchant();
+  }
+});
 const goGroup = async () => {
   let id = currentConversationID.value.slice(3);
   let res = await mesApi.default.getByOwnerId(id);