Explorar el Código

fix:【mall】客服的对话未选中时,不进行数据加载

YunaiV hace 1 mes
padre
commit
3d07ebcbe8

+ 3 - 0
src/views/mall/promotion/kefu/components/member/MemberInfo.vue

@@ -75,6 +75,9 @@ const tabActivation = computed(() => (tab: string) => activeTab.value === tab)
 const productBrowsingHistoryRef = ref<InstanceType<typeof ProductBrowsingHistory>>()
 const orderBrowsingHistoryRef = ref<InstanceType<typeof OrderBrowsingHistory>>()
 const handleClick = async (tab: string) => {
+  if (isEmpty(conversation)) {
+    return
+  }
   activeTab.value = tab
   await nextTick()
   await getHistoryList()