mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
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 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`
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue