fix: breadcrumb issue (#3111)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
wangdan-fit2cloud 2025-05-19 18:18:36 +08:00 committed by GitHub
parent a4d10cbe3b
commit a30316d87a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -228,6 +228,11 @@ function getApplication() {
}
function refresh() {
common.saveBreadcrumb(null)
if (isDataset.value) {
getDataset()
} else if (isApplication.value) {
getApplication()
}
}
onMounted(() => {
if (!breadcrumbData.value) {

View File

@ -242,6 +242,7 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
}
applicationApi.postApplication(applicationForm.value, loading).then((res) => {
MsgSuccess(t('common.createSuccess'))
emit('refresh')
if (isWorkFlow(applicationForm.value.type)) {
router.push({ path: `/application/${res.data.id}/workflow` })
} else {