Rap 原分销系统代码Web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

05a8095d4bf23d1bcce51b29ea76a4a7ad81e696.svn-base 734B

5 kuukautta sitten
123456789101112131415161718192021222324252627282930313233343536
  1. import variables from '@/assets/styles/element-variables.scss'
  2. import defaultSettings from '@/settings'
  3. const { tagsView, fixedHeader, sidebarLogo, showFooter, footerTxt, caseNumber } = defaultSettings
  4. const state = {
  5. theme: variables.theme,
  6. showSettings: false,
  7. tagsView: tagsView,
  8. fixedHeader: fixedHeader,
  9. sidebarLogo: sidebarLogo,
  10. showFooter: showFooter,
  11. footerTxt: footerTxt,
  12. caseNumber: caseNumber
  13. }
  14. const mutations = {
  15. CHANGE_SETTING: (state, { key, value }) => {
  16. if (state.hasOwnProperty(key)) {
  17. state[key] = value
  18. }
  19. }
  20. }
  21. const actions = {
  22. changeSetting({ commit }, data) {
  23. commit('CHANGE_SETTING', data)
  24. }
  25. }
  26. export default {
  27. namespaced: true,
  28. state,
  29. mutations,
  30. actions
  31. }