perf: 输入空值不允许发送
This commit is contained in:
@ -42,7 +42,7 @@ export default {
|
||||
conversationList.value.push({
|
||||
role: QUESTION_ROLE,
|
||||
content: message,
|
||||
});
|
||||
});
|
||||
|
||||
initSse({ message });
|
||||
};
|
||||
@ -84,7 +84,6 @@ export default {
|
||||
agent_id: chatStore.agentInfo.agent_id,
|
||||
}),
|
||||
});
|
||||
|
||||
} catch (error) {
|
||||
console.error('Failed to initialize SSE:', error);
|
||||
antdMessage.error('初始化连接失败');
|
||||
@ -128,7 +127,7 @@ export default {
|
||||
role: QUESTION_ROLE,
|
||||
content: message,
|
||||
});
|
||||
|
||||
|
||||
initSse(newVal);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user