Vue中在使用router-link报Cannot read property '_normalized' of undefined
程序员文章站
2022-04-25 22:12:59
...
vue.esm.js?efeb:1897 TypeError: Cannot read property '_normalized' of undefined
at normalizeLocation (vue-router.esm.js?fe87:1295)
at VueRouter.resolve (vue-router.esm.js?fe87:2622)
at VueComponent.render (vue-router.esm.js?fe87:423)
at VueComponent.Vue._render (vue.esm.js?efeb:3551)
at VueComponent.updateComponent (vue.esm.js?efeb:4069)
at Watcher.get (vue.esm.js?efeb:4482)
at new Watcher (vue.esm.js?efeb:4471)
at mountComponent (vue.esm.js?efeb:4076)
at VueComponent.Vue.$mount (vue.esm.js?efeb:9057)
at VueComponent.Vue.$mount (vue.esm.js?efeb:11953)
给route-link 的to属性附上值就好了
<router-link :to="">hello</router-link>
上一篇: 情人节去哪里玩比较好?
下一篇: 案例分析:图文排版及设计的五个小技巧
推荐阅读
-
Vue坑点 在Vue中引入Echarts报错 Cannot read property ‘init‘ of undefined
-
Vue框架的学习中,使用substring方法时提示:Uncaught TypeError: Cannot read property ‘substring‘ of undefined的解决方法
-
Vue中在使用router-link报Cannot read property '_normalized' of undefined
-
Vue框架的学习中,使用substring方法时提示:Uncaught TypeError: Cannot read property ‘substring‘ of undefined的解决方法
-
Vue坑点 在Vue中引入Echarts报错 Cannot read property ‘init‘ of undefined