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


找了半天,发现自己使用Vue.user()出错了。

import Vuex from 'vuex'
import Vue from 'vue'

Vue.use(Vuex)
Vue.use(Vue)
把上面的Vue.user(Vue)删除就对了

猜你喜欢

转载自blog.csdn.net/zhangludcsdn/article/details/80733371