feat: 数据集,应用路由

This commit is contained in:
shaohuzhang1 2023-12-05 10:31:57 +08:00
parent eaf0edb767
commit 86ccb11d94

View File

@ -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` })
} }
} }