123456789101112131415161718192021222324252627282930313233343536373839 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- import user from './model/user'
- Vue.use(Vuex)
- const store = new Vuex.Store({
- state: {
-
-
- baseURL:window.location.protocol + "//" + window.location.host,
-
-
- baseURL:'https://xmyl.qiniu1314.com',
-
- urlFile:'/index',
- userInfo: {},
- loginInterceptor:false,
-
- weichatInfo:{},
- weichatObj:'',
-
- },
- mutations: {
-
- setWeiChatInfo(state, provider) {
- state.weichatInfo = provider;
- },
-
- setWeiChatObj(state, provider) {
- state.weichatObj = provider;
- },
- },
- modules:{
- user
- },
- actions: {}
- })
- export default store
|