index.js 672 B

12345678910111213141516171819202122232425262728293031
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. Vue.use(Vuex)
  4. export default new Vuex.Store({
  5. state: {
  6. windowWidth: 1920 + 1080,
  7. //wsUrl: 'localhost:8089/', //本地
  8. //wsUrl: '172.16.120.104:8089/', //本地
  9. //wsUrl: '101.133.214.75:81', //内测试
  10. wsUrl: '10.108.34.2:80/sdws', //山东
  11. weaterRes: {}
  12. },
  13. mutations: {
  14. changClient(state, val) {
  15. state.windowWidth = val
  16. },
  17. // changTypeFire(state, val) {
  18. // state.typeFire = val
  19. // },
  20. changWeater(state, val) {
  21. state.weaterRes = val
  22. }
  23. },
  24. actions: {},
  25. modules: {}
  26. })