欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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-用户管理