123456789101112131415161718192021222324 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- Vue.use(Vuex)
- const store = new Vuex.Store({
- state: {
- isLogin: false,
- luyou: 1,
- userInfo: {},
- nCount: 0,
- api: 'https://pbl.cocorobo.cn/api/pbl/',
- socket: "https://poll.cocorobo.cn",
- // api: 'http://localhost:7003/api/pbl/',
- },
- mutations: {
- update(state, [key, value]) {
- state[key] = value;
- },
- }
- })
- export default store
|