feat(portal): 移除组件props中的conversationId并将其移至data中

将sendMessage.vue组件中的conversationId属性从props移动到data中,以便更好地管理组件内部状态。
This commit is contained in:
chong.yanning@ebiz-digits.com
2025-12-18 13:41:24 +08:00
parent 5e3f73684a
commit c788b49d52

View File

@@ -70,10 +70,6 @@ export default {
type: Array, type: Array,
default: () => [], default: () => [],
}, },
conversationId: {
type: String,
default: "",
},
}, },
data() { data() {
return { return {
@@ -82,6 +78,7 @@ export default {
isStopped: false, // 添加停止状态 isStopped: false, // 添加停止状态
typingTimer: null, // 添加这一行 typingTimer: null, // 添加这一行
thinkTypingTimer: null, // 添加这一行 thinkTypingTimer: null, // 添加这一行
conversationId: "",
}; };
}, },
watch: { watch: {