fix: workflow back button error

This commit is contained in:
wangdan-fit2cloud 2025-07-31 10:44:52 +08:00
parent 30942108bd
commit 021442d586
3 changed files with 7 additions and 6 deletions

View File

@ -157,7 +157,7 @@ const { theme } = useStore()
const router = useRouter()
const route = useRoute()
const {
params: { id },
params: { id, from },
} = route as any
const apiType = computed(() => {
if (route.path.includes('resource-management')) {
@ -479,7 +479,7 @@ const get_route = () => {
'OR',
)
) {
return `/application/${id}/WORK_FLOW/overview`
return `/application/${from}/${id}/WORK_FLOW/overview`
} else if (
hasPermission(
[
@ -505,7 +505,7 @@ const get_route = () => {
'OR',
)
) {
return `/application/${id}/WORK_FLOW/access`
return `/application/${from}/${id}/WORK_FLOW/access`
} else if (
hasPermission(
[
@ -535,7 +535,7 @@ const get_route = () => {
'OR',
)
) {
return `/application/${id}/WORK_FLOW/chat-user`
return `/application/${from}/${id}/WORK_FLOW/chat-user`
} else if (
hasPermission(
[
@ -551,7 +551,7 @@ const get_route = () => {
'OR',
)
) {
return `/application/${id}/WORK_FLOW/chat-log`
return `/application/${from}/${id}/WORK_FLOW/chat-log`
} else return `/application`
}

View File

@ -13,6 +13,7 @@
:rules="rules"
label-position="top"
require-asterisk-position="right"
@submit.prevent
>
<el-form-item :label="$t('views.application.form.appName.label')" prop="name">
<el-input

View File

@ -66,7 +66,7 @@
</el-table-column>
<el-table-column
prop="provider"
:label="$t('views.system.resource_management.type')"
:label="$t('views.model.provider')"
show-overflow-tooltip
width="150"
>