vue-router 结合vue的Suspense在导航的时候出现导航错误 #1894
Unanswered
1922057635
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
一级路由出口
路由的加载时通过import的方式去加载的。 {
path: '/home',
name: PageName.home,
component: () => import('@pages/Home/home.vue'),
}。
版本
"vue": "^3.2.25",
"vue-router": "4.2.0"
在点击路由的时候第一次进行路由跳转的时候不会出现问题第二次就有问题。
跳转方式
router.push({
name: pageName,
});
出现的报错:

Beta Was this translation helpful? Give feedback.
All reactions