Skip to content

Commit eb42235

Browse files
committed
fix: The dialogue function of the layout interface has an incorrect redirect path
1 parent 0aef02d commit eb42235

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

ui/src/views/application-workflow/index.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
>
1212
</div>
1313
<el-text type="info" class="ml-16 color-secondary" v-else-if="saveTime"
14-
>{{ $t('workflow.info.saveTime')
15-
}}{{ datetimeFormat(saveTime) }}</el-text
14+
>{{ $t('workflow.info.saveTime') }}{{ datetimeFormat(saveTime) }}</el-text
1615
>
1716
</div>
1817
<div v-if="showHistory && disablePublic">
@@ -207,7 +206,10 @@ const urlParams = computed(() =>
207206
mapToUrlParams(apiInputParams.value) ? '?' + mapToUrlParams(apiInputParams.value) : '',
208207
)
209208
const shareUrl = computed(
210-
() => `${window.location.origin}/chat/` + detail.value?.access_token + urlParams.value,
209+
() =>
210+
`${window.location.origin}${window.MaxKB.chatPrefix}/` +
211+
detail.value?.access_token +
212+
urlParams.value,
211213
)
212214
213215
function back() {
@@ -368,9 +370,7 @@ const publish = () => {
368370
const node = res.node
369371
const err_message = res.errMessage
370372
if (typeof err_message == 'string') {
371-
MsgError(
372-
res.node.properties?.stepName + ` ${t('workflow.node')},` + err_message,
373-
)
373+
MsgError(res.node.properties?.stepName + ` ${t('workflow.node')},` + err_message)
374374
} else {
375375
const keys = Object.keys(err_message)
376376
MsgError(
@@ -406,9 +406,7 @@ const clickShowDebug = () => {
406406
const node = res.node
407407
const err_message = res.errMessage
408408
if (typeof err_message == 'string') {
409-
MsgError(
410-
res.node.properties?.stepName + ` ${t('workflow.node')},` + err_message,
411-
)
409+
MsgError(res.node.properties?.stepName + ` ${t('workflow.node')},` + err_message)
412410
} else {
413411
const keys = Object.keys(err_message)
414412
MsgError(

0 commit comments

Comments
 (0)