switchingModule.js 672 B

12345678910111213141516171819202122232425262728293031323334353637
  1. const state = {
  2. isRecharge: false, // 隐藏充值模块
  3. isGuiding: false, // 隐藏创作模块中的引导部分 需要手动去打开
  4. isTheTask: false, // 首页任务隐藏
  5. }
  6. const mutations = {
  7. setIsRecharge(state, falg) {
  8. state.isRecharge = falg
  9. },
  10. setIsGuiding(state, falg) {
  11. state.isGuiding = falg
  12. },
  13. }
  14. const actions = {
  15. // // 设置权限
  16. // setPermissions({ commit }, permissions) {
  17. // commit('SET_PERMISSIONS', permissions)
  18. // }
  19. }
  20. const getters = {
  21. isRecharge: state => state.isRecharge,
  22. isGuiding: state => state.isGuiding,
  23. }
  24. export default {
  25. namespaced: true,
  26. state,
  27. mutations,
  28. actions,
  29. getters
  30. }