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

This commit is contained in:
YunaiV
2025-12-07 18:25:48 +08:00
parent 5fd5418f6b
commit 3d07ebcbe8

View File

@@ -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()