Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 11:29:20 +08:00

style: 移除对路由异常的捕获

This commit is contained in:
pany 2022-08-26 15:40:40 +08:00
parent e4bbd2a277
commit 481929a502

View File

@ -24,14 +24,10 @@ const pathCompile = (path: string) => {
const handleLink = (item: RouteLocationMatched) => {
const { redirect, path } = item
if (redirect) {
router.push(redirect as string).catch((err) => {
console.warn(err)
})
router.push(redirect as string)
return
}
router.push(pathCompile(path)).catch((err) => {
console.warn(err)
})
router.push(pathCompile(path))
}
watch(