config.js 388 B

12345678910111213141516
  1. export const state = () => ({
  2. configInfo: {},
  3. });
  4. export const mutations = {
  5. setConfigInfo(state, configInfo) {
  6. state.configInfo = configInfo;
  7. this.$cookies.set("config-info", configInfo, { maxAge: 2592000, path: '/' });
  8. },
  9. getConfigInfo(state) {
  10. state.configInfo = this.$cookies.get("config-info");
  11. },
  12. };
  13. export const actions = {
  14. };