Rap 原分销系统代码Web
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

37 rindas
734B

  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. }