import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { statusBarHeight:null, topbarOffsetHeight:null, tabbarHeight:null, hasSafeArea:null, platform:null, isUpdateUserInfo:false, appId:'wxc351e5dcc35e5b30', version:null, service:null, latitude:null, longitude:null, userInfo:null, imageCdn:null, videoCdn:null, IMloadSig:null, }, mutations: { setStatusBarHeight(state,preload){ state.statusBarHeight=preload; }, setTopbarOffsetHeight(state,preload){ state.topbarOffsetHeight=preload; }, setTabBarHeight(state,preload){ state.tabbarHeight=preload; }, setHasSafeArea(state,preload){ state.hasSafeArea=preload; }, setPlatform(state,preload){ state.platform=preload; }, setIsUpdateUserInfo(state,preload){ state.isUpdateUserInfo=preload; }, setVersion(state,preload){ state.version=preload; }, setService(state,preload){ state.service=preload; }, setLatitude(state,preload){ state.latitude=preload; }, setLongitude(state,preload){ state.longitude=preload; }, setUserInfo(state,preload){ state.userInfo=preload; }, setImageCdn(state,preload){ state.imageCdn=preload; }, setVideoCdn(state,preload){ state.videoCdn=preload; }, setImLoadSig(state,preload){ state.IMloadSig=preload; } }, modules: { } })