使用vue1.0写法不报错但是模块不加载

vue1.0老写法

new Vue({
  el: '#app',
  components: { App }
});


在2.0上没有报错,但是模块不加载,找了一天的问题,最后才想起来应该

new Vue({
  el: '#app',
  template: '<App/>',
  components: { App }
});


自己SB了一天,喵了个咪的。

猜你喜欢

转载自blog.csdn.net/u011025329/article/details/62490521
今日推荐