初学VUE 2.0----填坑记

问题汇总    持更~~~~~^_^

Q: TypeError: Cannot read property 'resolve' of undefined

在routerlink中没有找到'resolve' 

产生的原因有:

  • 忘记在vue实例中配置router参数注入路由(下图标红框处)

改正:

Q:No Vue component was found

产生原因:vue-router的映射路由配置不正确

Q:[vue-router] Route with name '/customer' does not exist

产生原因:

router.push中使用了name属性,则router的映射路由配置时也应该添加name属性(如下图)

Q:You may have an infinite update loop in a component render function.  found in

产生原因:v-for造成的死循环

猜你喜欢

转载自blog.csdn.net/zd375005009/article/details/88423597