Skip to content

Commit 54c87a0

Browse files
author
litongjava
committed
fix bug sse request
1 parent b606c7a commit 54c87a0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

ui/src/api/application.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ const getChatOpen: (application_id: String) => Promise<Result<any>> = (applicati
187187
* data
188188
*/
189189
const postChatMessage: (chat_id: string, data: any) => Promise<any> = (chat_id, data) => {
190-
return postStream(`/api${prefix}/chat_message/${chat_id}`, data)
190+
const server=import.meta.env.VITE_API_BASE_URL || '/api';
191+
return postStream(`${server}${prefix}/chat_message/${chat_id}`, data)
191192
}
192193

193194
/**

ui/src/views/application-workflow/component/DropdownMenu.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383
<el-tag type="warning" v-if="isWorkFlow(item.type)" style="height: 22px"
8484
>高级编排</el-tag
8585
>
86+
<el-tag type="warning" v-else-if="isDepartment(item.type)" style="height: 22px"
87+
>部门机构</el-tag
88+
>
8689
<el-tag class="blue-tag" v-else style="height: 22px">简单配置</el-tag>
8790
</div>
8891
</div>
@@ -97,7 +100,7 @@ import { ref, onMounted, computed } from 'vue'
97100
import { menuNodes, functionLibNode, functionNode, applicationNode } from '@/workflow/common/data'
98101
import { iconComponent } from '@/workflow/icons/utils'
99102
import applicationApi from '@/api/application'
100-
import { isWorkFlow } from '@/utils/application'
103+
import {isDepartment, isWorkFlow} from '@/utils/application'
101104
const search_text = ref<string>('')
102105
const props = defineProps({
103106
show: {

ui/src/views/application/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
</template>
8888
<div class="status-tag">
8989
<el-tag type="warning" v-if="isWorkFlow(item.type)" style="height: 22px">高级编排</el-tag>
90-
<el-tag type="warning" v-if="isDepartment(item.type)" style="height: 22px">高级编排</el-tag>
90+
<el-tag type="warning" v-if="isDepartment(item.type)" style="height: 22px">部门机构</el-tag>
9191
<el-tag class="blue-tag" v-else style="height: 22px">简单配置</el-tag>
9292
</div>
9393

0 commit comments

Comments
 (0)