chore:ai智能客服可以正常对话
This commit is contained in:
@@ -313,7 +313,7 @@ export default {
|
||||
// 是否启用流式响应
|
||||
enableStreaming: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
default: false
|
||||
},
|
||||
// 流式响应速度(字符/秒)
|
||||
streamSpeed: {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<!-- AI智能助手 -->
|
||||
<view class="btn-item" v-if="fixBtnShow && enableAIChat" @click="openAIChat" :style="{backgroundImage:'url('+(aiAgentimg?aiAgentimg:'')+')',backgroundSize:'100% 100%'}">
|
||||
<text class="ai-icon" v-if="!aiAgentimg">🤖</text>
|
||||
<text class="ai-icon" v-if="!aiAgentimg"></text>
|
||||
<!-- 未读消息小红点 -->
|
||||
<view v-if="unreadCount > 0" class="unread-badge">
|
||||
<text class="badge-text">{{ unreadCount > 99 ? '99+' : unreadCount }}</text>
|
||||
@@ -73,17 +73,17 @@
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'globalAIAgentConfig',
|
||||
'globalAIKefuConfig',
|
||||
'aiUnreadCount'
|
||||
]),
|
||||
aiAgentimg() {
|
||||
return this.globalAIAgentConfig?.icon || this.$util.getDefaultImage().aiAgent || '' // AI智能助手的头像
|
||||
return this.globalAIKefuConfig?.icon || this.$util.getDefaultImage().aiAgent || '' // AI智能助手的头像
|
||||
},
|
||||
unreadCount() {
|
||||
return this.aiUnreadCount
|
||||
},
|
||||
enableAIChat() {
|
||||
return this.globalAIAgentConfig?.enable || true // 是否开启AI智能助手
|
||||
return this.globalAIKefuConfig?.enable || true // 是否开启AI智能助手
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user