zxl
2025-06-19 c1e567ddda7f65651179a8a73ca849b07b066b14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const { setting } = require("@/config");
 
const localSetting = window.localStorage.getItem('admin-setting')
const settingData = {
  state: {
    setting:localSetting ? JSON.parse(localSetting) : setting,
  },
  mutations: {
    updateSetting(state, data) {
      state.setting = data;
    },
  },
};
 
export default settingData;