feat: 数据集,应用路由
parent
eaf0edb767
commit
86ccb11d94
|
|
@ -84,10 +84,9 @@ const isDataset = computed(() => {
|
||||||
return meta?.activeMenu.includes('dataset')
|
return meta?.activeMenu.includes('dataset')
|
||||||
})
|
})
|
||||||
function changeMenu(id: string) {
|
function changeMenu(id: string) {
|
||||||
if (isApplication.value) {
|
const lastMatched = route.matched[route.matched.length - 1]
|
||||||
router.push({ path: `/application/${id}/overview` })
|
if (lastMatched) {
|
||||||
} else if (isDataset.value) {
|
router.push({ name: lastMatched.name, params: { id: id } })
|
||||||
router.push({ path: `/dataset/${id}/document` })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue