Skip to content

Commit a30316d

Browse files
fix: breadcrumb issue (#3111)
1 parent a4d10cb commit a30316d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ui/src/layout/components/breadcrumb/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ function getApplication() {
228228
}
229229
function refresh() {
230230
common.saveBreadcrumb(null)
231+
if (isDataset.value) {
232+
getDataset()
233+
} else if (isApplication.value) {
234+
getApplication()
235+
}
231236
}
232237
onMounted(() => {
233238
if (!breadcrumbData.value) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
242242
}
243243
applicationApi.postApplication(applicationForm.value, loading).then((res) => {
244244
MsgSuccess(t('common.createSuccess'))
245+
emit('refresh')
245246
if (isWorkFlow(applicationForm.value.type)) {
246247
router.push({ path: `/application/${res.data.id}/workflow` })
247248
} else {

0 commit comments

Comments
 (0)