Просмотр исходного кода

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

YunaiV 1 месяц назад
Родитель
Сommit
3d07ebcbe8
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/views/mall/promotion/kefu/components/member/MemberInfo.vue

+ 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 productBrowsingHistoryRef = ref<InstanceType<typeof ProductBrowsingHistory>>()
 const orderBrowsingHistoryRef = ref<InstanceType<typeof OrderBrowsingHistory>>()
 const orderBrowsingHistoryRef = ref<InstanceType<typeof OrderBrowsingHistory>>()
 const handleClick = async (tab: string) => {
 const handleClick = async (tab: string) => {
+  if (isEmpty(conversation)) {
+    return
+  }
   activeTab.value = tab
   activeTab.value = tab
   await nextTick()
   await nextTick()
   await getHistoryList()
   await getHistoryList()