Ver código fonte

判断 客服号

潘超林 8 meses atrás
pai
commit
373e81446a
1 arquivos alterados com 5 adições e 2 exclusões
  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);