mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 数据集,应用路由
This commit is contained in:
parent
eaf0edb767
commit
86ccb11d94
|
|
@ -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 } })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue