feat(agent): 工作流页面添加应用名称显示

- 在工作流页面的返回按钮旁添加应用名称显示
- 在跳转到工作流页面时,通过路由 query 参数传递应用名称
- 修改了 Home.vue 和 intelligent-agent/index.vue 中的路由跳转逻辑
This commit is contained in:
陈昱达
2025-05-12 14:23:34 +08:00
parent daf2d68a72
commit f221e43d23
3 changed files with 12 additions and 3 deletions

View File

@@ -119,7 +119,10 @@ export default {
<template> <template>
<div class="render-container"> <div class="render-container">
<BackButton></BackButton> <div>
<BackButton></BackButton>
<span class="fs14 fw600 "> {{ $route.query.name }}</span>
</div>
<div <div
v-loading="isLoading" v-loading="isLoading"
style="width: 100%; height: calc(100% - 42px);border-radius: 8px" style="width: 100%; height: calc(100% - 42px);border-radius: 8px"

View File

@@ -243,7 +243,10 @@ export default {
localStorage.setItem('console_token', accessToken) localStorage.setItem('console_token', accessToken)
// 做成页面跳转 // 做成页面跳转
this.$router.push({ this.$router.push({
path: `/agent/${agent.thirdAppId}/workflow` path: `/agent/${agent.thirdAppId}/workflow`,
query: {
name: agent.appName
}
}) })
}, },

View File

@@ -169,7 +169,10 @@ export default {
localStorage.setItem('console_token', accessToken) localStorage.setItem('console_token', accessToken)
// 做成页面跳转 // 做成页面跳转
this.$router.push({ this.$router.push({
path: `/agent/${this.agentConfig.agent.thirdAppId}/workflow` path: `/agent/${this.agentConfig.agent.thirdAppId}/workflow`,
query: {
name: agent.appName
}
}) })
}, },