使用vue-router报错,Uncaught TypeError: Cannot read property 'component' of undefined

来源:15-4 Vue-router(上)

维娜娜

2017-07-18

  "dependencies": {

    "vue": "^2.3.3",

    "vue-router": "^2.3.1"

 };

http://szimg.mukewang.com/596d8eb400019a7807910690.jpg

http://szimg.mukewang.com/596d8eb40001ae5e06360542.jpg

http://szimg.mukewang.com/596d8eb600016f4d07360569.jpg

 请问问题出在哪里?


写回答

2回答

维娜娜

提问者

2017-07-18

问题已解决!是vue-router的版本问题

0
0

维娜娜

提问者

2017-07-18

写错了  "vue-router"的版本是"^0.7.13”

0
0

Vue.js2.5+cube-ui重构饿了么App(经典再升级)

掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp

9868 学习 · 4162 问题

查看课程