From d8e03e650c49e8d316f7230da965ef13d1d55150 Mon Sep 17 00:00:00 2001
From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date: Wed, 17 Dec 2025 13:42:15 +0800
Subject: [PATCH] fix: The dialogue function of the layout interface has an
incorrect redirect path (#4529)
---
ui/src/views/application-workflow/index.vue | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue
index 91a8d5f30..e22d81b61 100644
--- a/ui/src/views/application-workflow/index.vue
+++ b/ui/src/views/application-workflow/index.vue
@@ -11,8 +11,7 @@
>
{{ $t('workflow.info.saveTime')
- }}{{ datetimeFormat(saveTime) }}{{ $t('workflow.info.saveTime') }}{{ datetimeFormat(saveTime) }}
@@ -207,7 +206,10 @@ const urlParams = computed(() =>
mapToUrlParams(apiInputParams.value) ? '?' + mapToUrlParams(apiInputParams.value) : '',
)
const shareUrl = computed(
- () => `${window.location.origin}/chat/` + detail.value?.access_token + urlParams.value,
+ () =>
+ `${window.location.origin}${window.MaxKB.chatPrefix}/` +
+ detail.value?.access_token +
+ urlParams.value,
)
function back() {
@@ -368,9 +370,7 @@ const publish = () => {
const node = res.node
const err_message = res.errMessage
if (typeof err_message == 'string') {
- MsgError(
- res.node.properties?.stepName + ` ${t('workflow.node')},` + err_message,
- )
+ MsgError(res.node.properties?.stepName + ` ${t('workflow.node')},` + err_message)
} else {
const keys = Object.keys(err_message)
MsgError(
@@ -406,9 +406,7 @@ const clickShowDebug = () => {
const node = res.node
const err_message = res.errMessage
if (typeof err_message == 'string') {
- MsgError(
- res.node.properties?.stepName + ` ${t('workflow.node')},` + err_message,
- )
+ MsgError(res.node.properties?.stepName + ` ${t('workflow.node')},` + err_message)
} else {
const keys = Object.keys(err_message)
MsgError(