Vuejs的路由为什么没有生效,没有报错,但是就是内容没有显示出来

2025-02-26 01:29:40
推荐回答(1个)
回答1:

2.0和1.0版本的写法不一样。
new Vue({
el: '#app',
template: '',
components: { App }
});
这样就可以了,2.0版本的改了一些东西。