最近学用vue做项目,一开始就发现个问题
跳转不到子路由页面
搜了一下一般说路由页面要有<router-view/>
来承载,也放了,还是不行
然后f12看看跳转报错
Cannot read properties of undefined (reading '$createElement')
再一搜,配置子页面时component
写成了components
改好,ok
最近学用vue做项目,一开始就发现个问题
跳转不到子路由页面
搜了一下一般说路由页面要有<router-view/>
来承载,也放了,还是不行
然后f12看看跳转报错
Cannot read properties of undefined (reading '$createElement')
再一搜,配置子页面时component
写成了components
改好,ok