• This project
    • Loading...
  • Sign in

2020-1-CloudComputing / D_Team_Khuloud

%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
  • D_Team_Khuloud
  • front-end
  • src
  • store
  • index.js
  • 최동원's avatar
    login/logout/signup · 8e66b6ce
    8e66b6ce
    최동원 authored 2020-05-26 05:15:17 +0900
index.js 318 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 23
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    id: '',
  },
  mutations: {
    setId(state, userid){
      state.id = id;
    },
    clearid(state){
      state.id= '';
    }
  },
  getters: {
    isLogin(state){
      return state.id !== '';
    }
  }
})