mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-22 01:06:43 +08:00
feat(portal): 移除组件props中的conversationId并将其移至data中
将sendMessage.vue组件中的conversationId属性从props移动到data中,以便更好地管理组件内部状态。
This commit is contained in:
@@ -70,10 +70,6 @@ export default {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
},
|
||||
conversationId: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -82,6 +78,7 @@ export default {
|
||||
isStopped: false, // 添加停止状态
|
||||
typingTimer: null, // 添加这一行
|
||||
thinkTypingTimer: null, // 添加这一行
|
||||
conversationId: "",
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
|
||||
Reference in New Issue
Block a user