• This project
    • Loading...
  • Sign in

2021-1-capstone-design1 / TWT_Project1

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • TWT_Project1
  • Frontend
  • src
  • store
  • index.js
  • 배상현's avatar
    프론트 백엔드 코드 회사 래파지토리에서 가져오기 · 132c69f8 ...
    132c69f8
    Signed-off-by: bsh <bsh01111@naver.com>
    배상현 authored 2021-06-10 21:25:34 +0900
index.js 419 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
export const state = () => ({
  settings: {},
});

export const getters = {
  getSettings: (state) => state.settings,
};

export const actions = {
  setSettings(context, params) {
    context.commit('CHANGE_SETTINGS', params);
  },
  async nuxtServerInit({ dispatch }, ctx) {
    dispatch('Code/fetchCodes');
  },
};

export const mutations = {
  CHANGE_SETTINGS(state, payload) {
    state.settings = payload;
  },
};