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

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        windowWidth: 0,
        typeFire: 0,
        wsUrl: '172.16.120.92:8081',
        weaterRes: {}
    },
    mutations: {
        changClient(state, val) {
            state.windowWidth = val
        },
        changTypeFire(state, val) {
            state.typeFire = val
        },
        changWeater(state, val) {
            state.weaterRes = val
            console.log(state.weaterRes)
        }
    },
    actions: {},
    modules: {}
})