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')
})
function changeMenu(id: string) {
if (isApplication.value) {
router.push({ path: `/application/${id}/overview` })
} else if (isDataset.value) {
router.push({ path: `/dataset/${id}/document` })
const lastMatched = route.matched[route.matched.length - 1]
if (lastMatched) {
router.push({ name: lastMatched.name, params: { id: id } })
}
}