【新增】:mall 客服消息样式设计

This commit is contained in:
puhui999
2024-07-01 16:15:27 +08:00
parent d3614cbbac
commit d3b4063b94
8 changed files with 249 additions and 88 deletions

View File

@ -15,12 +15,17 @@
<script lang="ts" setup>
import { KeFuChatBox, KeFuConversationBox } from './components'
import { KeFuConversationRespVO } from '@/api/mall/promotion/kefu/conversation'
defineOptions({ name: 'KeFu' })
// 加载消息
const keFuChatBoxRef = ref<InstanceType<typeof KeFuChatBox>>()
const handleChange = () => {}
const handleChange = (conversation: KeFuConversationRespVO) => {
keFuChatBoxRef.value?.getMessageList(conversation)
}
// 加载会话
const keFuConversationRef = ref<InstanceType<typeof KeFuConversationBox>>()
onMounted(() => {
keFuConversationRef.value?.getConversationList()