版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wn1245343496/article/details/81704143
在用vuex的时候,在mian.js中导入store/index.js文件,浏览器一直显示
语句是:
import store from './store'
应该是吧store这个文件件当做store.js来引入了
最后发现问题所在:后面少了'/'
import store from './store/'