123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import variables from '@/assets/styles/element-variables.scss'
- import defaultSettings from '@/settings'
- const { showSettings, tagsView, fixedHeader, sidebarLogo } = defaultSettings
- const state = {
- theme: variables.theme,
- showSettings: showSettings,
- tagsView: tagsView,
- fixedHeader: fixedHeader,
- sidebarLogo: sidebarLogo,
- pfdPageImgeSize: {
- imageWidth:2148,
- areaLJLWidth: 248,
- areaJLQWidth: 423,
- areaZJQWidth: 802,
- areaYSWidth: 520,
- areaTBPWidth: 282,
- areaRQ1Width: 520,
- areaLQ_RQWidth: 666,
- areaLQ_1Width: 666,
- areaLQ_2Width: 320,
- areaRQ2Width: 320,
- },
- }
- const mutations = {
- CHANGE_SETTING: (state, { key, value }) => {
- console.log("value")
- if (state.hasOwnProperty(key)) {
- state[key] = value
- }
- }
- }
- const actions = {
- changeSetting({ commit }, data) {
- commit('CHANGE_SETTING', data)
- }
- }
- export default {
- namespaced: true,
- state,
- mutations,
- actions
- }
|