移除设置对话模型,和工作流刷新按钮

This commit is contained in:
2026-05-13 13:46:13 +08:00
parent 5735eabe04
commit bd2195ee06

View File

@@ -195,10 +195,10 @@
<div class="sub">{{ currentWorkflowForCreation?.description || '填写表单参数进行内容创作' }}</div> <div class="sub">{{ currentWorkflowForCreation?.description || '填写表单参数进行内容创作' }}</div>
</div> </div>
<div class="creation-header-actions"> <div class="creation-header-actions">
<el-button type="warning" size="large" @click="showChatModelSelector = true"> <!-- <el-button type="warning" size="large" @click="showChatModelSelector = true">
<el-icon><Setting /></el-icon> <el-icon><Setting /></el-icon>
设置对话模型 设置对话模型
</el-button> </el-button> -->
<el-button @click="backToCanvas">返回画布</el-button> <el-button @click="backToCanvas">返回画布</el-button>
</div> </div>
</div> </div>
@@ -400,7 +400,7 @@
<el-tab-pane label="我的工作流" name="user"> <el-tab-pane label="我的工作流" name="user">
<div class="right-panel-header"> <div class="right-panel-header">
<el-button type="success" size="small" @click="createNewWorkflow">新建</el-button> <el-button type="success" size="small" @click="createNewWorkflow">新建</el-button>
<el-button type="primary" link size="small" @click="refreshWorkflowList">刷新</el-button> <!-- <el-button type="primary" link size="small" @click="refreshWorkflowList">刷新</el-button> -->
</div> </div>
<div class="workflow-list-vertical" v-loading="workflowListLoading"> <div class="workflow-list-vertical" v-loading="workflowListLoading">
<el-empty v-if="!workflowListLoading && userWorkflowList.length === 0" description="暂无工作流" :image-size="60" /> <el-empty v-if="!workflowListLoading && userWorkflowList.length === 0" description="暂无工作流" :image-size="60" />
@@ -440,7 +440,7 @@
<el-tab-pane label="模板工作流" name="template"> <el-tab-pane label="模板工作流" name="template">
<div class="right-panel-header"> <div class="right-panel-header">
<el-button v-if="isAdmin" type="success" size="small" @click="createNewWorkflow">新建</el-button> <el-button v-if="isAdmin" type="success" size="small" @click="createNewWorkflow">新建</el-button>
<el-button type="primary" link size="small" @click="refreshWorkflowList">刷新</el-button> <!-- <el-button type="primary" link size="small" @click="refreshWorkflowList">刷新</el-button> -->
</div> </div>
<div class="workflow-list-vertical" v-loading="workflowListLoading"> <div class="workflow-list-vertical" v-loading="workflowListLoading">
<el-empty v-if="!workflowListLoading && templateWorkflowList.length === 0" description="暂无模板" :image-size="60" /> <el-empty v-if="!workflowListLoading && templateWorkflowList.length === 0" description="暂无模板" :image-size="60" />
@@ -1238,11 +1238,11 @@ const sendMessage = async () => {
try { try {
// 1. 先上传文件到 OSS获取文件 URL // 1. 先上传文件到 OSS获取文件 URL
const fileUrls: string[] = []; const fileUrls: string[] = [];
if (isFromWorkspace.value && currentWorkflowForCreation.value?.fileUrls) { if (isFromWorkspace.value && currentWorkflowForCreation.value?.fileUrls) {
fileUrls.push(...currentWorkflowForCreation.value.fileUrls); fileUrls.push(...currentWorkflowForCreation.value.fileUrls);
} }
if (selectedFiles.value.length > 0) { if (selectedFiles.value.length > 0) {
for (const file of selectedFiles.value) { for (const file of selectedFiles.value) {
const uploadRes = await uploadFile(file); const uploadRes = await uploadFile(file);