Skip to content

Commit 021442d

Browse files
fix: workflow back button error
1 parent 3094210 commit 021442d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const { theme } = useStore()
157157
const router = useRouter()
158158
const route = useRoute()
159159
const {
160-
params: { id },
160+
params: { id, from },
161161
} = route as any
162162
const apiType = computed(() => {
163163
if (route.path.includes('resource-management')) {
@@ -479,7 +479,7 @@ const get_route = () => {
479479
'OR',
480480
)
481481
) {
482-
return `/application/${id}/WORK_FLOW/overview`
482+
return `/application/${from}/${id}/WORK_FLOW/overview`
483483
} else if (
484484
hasPermission(
485485
[
@@ -505,7 +505,7 @@ const get_route = () => {
505505
'OR',
506506
)
507507
) {
508-
return `/application/${id}/WORK_FLOW/access`
508+
return `/application/${from}/${id}/WORK_FLOW/access`
509509
} else if (
510510
hasPermission(
511511
[
@@ -535,7 +535,7 @@ const get_route = () => {
535535
'OR',
536536
)
537537
) {
538-
return `/application/${id}/WORK_FLOW/chat-user`
538+
return `/application/${from}/${id}/WORK_FLOW/chat-user`
539539
} else if (
540540
hasPermission(
541541
[
@@ -551,7 +551,7 @@ const get_route = () => {
551551
'OR',
552552
)
553553
) {
554-
return `/application/${id}/WORK_FLOW/chat-log`
554+
return `/application/${from}/${id}/WORK_FLOW/chat-log`
555555
} else return `/application`
556556
}
557557

ui/src/views/application/component/CopyApplicationDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
:rules="rules"
1414
label-position="top"
1515
require-asterisk-position="right"
16+
@submit.prevent
1617
>
1718
<el-form-item :label="$t('views.application.form.appName.label')" prop="name">
1819
<el-input

ui/src/views/system-resource-management/ModelResourceIndex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</el-table-column>
6767
<el-table-column
6868
prop="provider"
69-
:label="$t('views.system.resource_management.type')"
69+
:label="$t('views.model.provider')"
7070
show-overflow-tooltip
7171
width="150"
7272
>

0 commit comments

Comments
 (0)