fix: workflow back button error
This commit is contained in:
parent
30942108bd
commit
021442d586
@ -157,7 +157,7 @@ const { theme } = useStore()
|
|||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const {
|
const {
|
||||||
params: { id },
|
params: { id, from },
|
||||||
} = route as any
|
} = route as any
|
||||||
const apiType = computed(() => {
|
const apiType = computed(() => {
|
||||||
if (route.path.includes('resource-management')) {
|
if (route.path.includes('resource-management')) {
|
||||||
@ -479,7 +479,7 @@ const get_route = () => {
|
|||||||
'OR',
|
'OR',
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return `/application/${id}/WORK_FLOW/overview`
|
return `/application/${from}/${id}/WORK_FLOW/overview`
|
||||||
} else if (
|
} else if (
|
||||||
hasPermission(
|
hasPermission(
|
||||||
[
|
[
|
||||||
@ -505,7 +505,7 @@ const get_route = () => {
|
|||||||
'OR',
|
'OR',
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return `/application/${id}/WORK_FLOW/access`
|
return `/application/${from}/${id}/WORK_FLOW/access`
|
||||||
} else if (
|
} else if (
|
||||||
hasPermission(
|
hasPermission(
|
||||||
[
|
[
|
||||||
@ -535,7 +535,7 @@ const get_route = () => {
|
|||||||
'OR',
|
'OR',
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return `/application/${id}/WORK_FLOW/chat-user`
|
return `/application/${from}/${id}/WORK_FLOW/chat-user`
|
||||||
} else if (
|
} else if (
|
||||||
hasPermission(
|
hasPermission(
|
||||||
[
|
[
|
||||||
@ -551,7 +551,7 @@ const get_route = () => {
|
|||||||
'OR',
|
'OR',
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return `/application/${id}/WORK_FLOW/chat-log`
|
return `/application/${from}/${id}/WORK_FLOW/chat-log`
|
||||||
} else return `/application`
|
} else return `/application`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
require-asterisk-position="right"
|
require-asterisk-position="right"
|
||||||
|
@submit.prevent
|
||||||
>
|
>
|
||||||
<el-form-item :label="$t('views.application.form.appName.label')" prop="name">
|
<el-form-item :label="$t('views.application.form.appName.label')" prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
|
|||||||
@ -66,7 +66,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="provider"
|
prop="provider"
|
||||||
:label="$t('views.system.resource_management.type')"
|
:label="$t('views.model.provider')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="150"
|
width="150"
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user