对话记录和工作空间链路确认

This commit is contained in:
2026-07-07 16:00:08 +08:00
parent 4679280e45
commit 5f0d860d27
6 changed files with 144 additions and 140 deletions
+3 -3
View File
@@ -39,7 +39,7 @@
<div class="toolbar-right">
<span class="hint-text">Shift+Enter 换行</span>
<button class="send-btn" :disabled="!message.trim() && selectedWorkflowId === null" @click="handleSend">
<button class="send-btn" :disabled="selectedWorkflowId === null" @click="handleSend">
<el-icon><Top /></el-icon>
</button>
</div>
@@ -100,8 +100,8 @@ const fetchWorkflows = async () => {
};
const handleSend = () => {
if (selectedWorkflowId.value === null) return;
const msg = message.value.trim();
if (!msg && selectedWorkflowId.value === null) return;
emit('send', msg || '');
message.value = '';
selectedWorkflowId.value = null;
@@ -133,7 +133,7 @@ onMounted(() => {
fetchWorkflows();
});
defineExpose({ resetAll, clearWorkflow, selectedWorkflowId });
defineExpose({ resetAll, clearWorkflow, selectedWorkflowId, commonWorkflows });
</script>
<style scoped lang="scss">