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:
parent
e4bbd2a277
commit
481929a502
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user