perf: 输入空值不允许发送

This commit is contained in:
rd
2025-08-29 10:30:11 +08:00
parent a9e928a261
commit 83d11f1f53
3 changed files with 18 additions and 9 deletions

View File

@ -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);
}
},