//1 使用一下实例

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

// 在webpack.config.js
resolve: {
    alias: {
      'vue': 'vue/dist/vue.js'
    }
  }


//2使用一下实例

new Vue({
   el: '#app',
   store,
   router, 
  render: h=> h(App)
})

 

  

// 两种挂载方式
new Vue({
  // el: '#app',
  store,
  render: h=> h(App)
}).$mount('#app')

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-09-17
  • 2021-09-18
  • 2021-08-21
猜你喜欢
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案