对话记录和工作空间链路确认
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user