12345678910111213141516171819202122232425262728293031 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- Vue.use(Vuex)
- export default new Vuex.Store({
- state: {
- windowWidth: 1920 + 1080,
- //wsUrl: 'localhost:8089/', //本地
- //wsUrl: '172.16.120.104:8089/', //本地
- //wsUrl: '101.133.214.75:81', //内测试
- wsUrl: '10.108.34.2:80/sdws', //山东
- weaterRes: {}
- },
- mutations: {
- changClient(state, val) {
- state.windowWidth = val
- },
- // changTypeFire(state, val) {
- // state.typeFire = val
- // },
- changWeater(state, val) {
- state.weaterRes = val
- }
- },
- actions: {},
- modules: {}
- })
|