router.js 795 B

1234567891011121314151617181920212223242526272829
  1. // store/index.js
  2. import Vue from 'vue';
  3. import Vuex from 'vuex';
  4. Vue.use(Vuex);
  5. export default new Vuex.Store({
  6. state: {
  7. // imgpath: 'https://fbylive.obs.cn-southwest-2.myhuaweicloud.com',//福本源图片请求地址
  8. Requestpath: 'https://userapp.fbylive.com',//福本源接口请求地址
  9. logoname:'本源一身轻',
  10. imgpath: 'https://zkzh-2024.oss-cn-beijing.aliyuncs.com',//中康图片请求地址
  11. // Requestpath: 'https://userapp.zkhj6.com'//中康接口请求地址
  12. },
  13. mutations: {
  14. setCount(state, value) {
  15. state.count = value;
  16. },
  17. setUserInfo(state, info) {
  18. state.userInfo = info;
  19. }
  20. },
  21. actions: {
  22. fetchUser({ commit }) {
  23. // const res = await uni.request({ url: '/api/user' });
  24. commit('setUserInfo', 'noe');
  25. }
  26. }
  27. });