router Store Login Path 확인 설정

This commit is contained in:
kimjhjjang
2022-11-08 15:00:36 +09:00
parent 4d43e04630
commit 3d1e6a2af0
2 changed files with 28 additions and 27 deletions

View File

@@ -3,29 +3,31 @@ const state = {
isLogin: false,
isErrorPage: false,
isAuthChk: false,
userId:null,
userNm:null,
userId: null,
userNm: null,
pwd: null,
rootUrl: null,
menuUrls: [],
authToken: null,
beforeUrl: null,
isLoading: false,
loginPathUrl: null,
};
const getters = {
getToken: state => state.token,
isLogin: state => state.isLogin,
isErrorPage: state => state.isErrorPage,
isAuthChk: state => state.isAuthChk,
userId: state => state.userId,
userNm: state => state.userNm,
getPwd: state => state.pwd,
getRootUrl: state => state.rootUrl,
getMenuUrls: state => state.menuUrls,
getAuthToken: state => state.authToken,
getBeforeUrl: state => state.beforeUrl,
isLoading: state => state.isLoading,
getToken: (state) => state.token,
isLogin: (state) => state.isLogin,
isErrorPage: (state) => state.isErrorPage,
isAuthChk: (state) => state.isAuthChk,
userId: (state) => state.userId,
userNm: (state) => state.userNm,
getPwd: (state) => state.pwd,
getRootUrl: (state) => state.rootUrl,
getMenuUrls: (state) => state.menuUrls,
getAuthToken: (state) => state.authToken,
getBeforeUrl: (state) => state.beforeUrl,
isLoading: (state) => state.isLoading,
getLoginPathUrl: (state) => state.loginPathUrl,
};
const mutations = {
@@ -70,16 +72,18 @@ const mutations = {
},
isLoading: (state, value) => {
state.isLoading = value;
}
},
setLoginPathUrl: (state, value) => {
state.loginPathUrl = value;
},
};
const actions = {
};
const actions = {};
export default {
namespaced: true,
state,
getters,
mutations,
actions
actions,
};