處理Vue is a constructor and should be called with the `new` keyword

找了半天,發現本身使用Vue.user()出錯了。html import Vuex from 'vuex' import Vue from 'vue' Vue.use(Vuex) Vue.use(Vue)把上面的Vue.user(Vue)刪除就對了
相關文章
相關標籤/搜索