From 669f7c0aeca540b7284e205bb3e4ba3b99b55c52 Mon Sep 17 00:00:00 2001 From: kimjhjjang Date: Tue, 8 Nov 2022 16:58:31 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EC=A7=80=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EC=9D=B8=EC=A6=9D=20URL=20=EB=93=B1=EB=A1=9D=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/modules/login/store/index.js | 5 ----- frontend/src/router.js | 3 --- src/main/java/kr/co/uplus/ez/config/SecurityConfig.java | 1 + 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/src/modules/login/store/index.js b/frontend/src/modules/login/store/index.js index 0d5966b..6944bbf 100644 --- a/frontend/src/modules/login/store/index.js +++ b/frontend/src/modules/login/store/index.js @@ -11,7 +11,6 @@ const state = { authToken: null, beforeUrl: null, isLoading: false, - loginPathUrl: null, }; const getters = { @@ -27,7 +26,6 @@ const getters = { getAuthToken: (state) => state.authToken, getBeforeUrl: (state) => state.beforeUrl, isLoading: (state) => state.isLoading, - getLoginPathUrl: (state) => state.loginPathUrl, }; const mutations = { @@ -73,9 +71,6 @@ const mutations = { isLoading: (state, value) => { state.isLoading = value; }, - setLoginPathUrl: (state, value) => { - state.loginPathUrl = value; - }, }; const actions = {}; diff --git a/frontend/src/router.js b/frontend/src/router.js index 8a60dae..1582cdf 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -66,15 +66,12 @@ const router = new Router({ router.beforeEach((to, from, next) => { const isPublic = to.matched.some((record) => record.meta.public); const loggedIn = !!tokenSvc.getToken(); - store.commit('login/setLoginPathUrl', isPublic + '/' + loggedIn + to.fullPath); if (!isPublic && !loggedIn) { return next('/login'); } else { var nextUrl = to.fullPath; var fromUrl = from.fullPath; - console.log(fromUrl); - var menuUrls = store.getters['login/getMenuUrls']; if (menuUrls.length > 0) { var moveFlag = false; diff --git a/src/main/java/kr/co/uplus/ez/config/SecurityConfig.java b/src/main/java/kr/co/uplus/ez/config/SecurityConfig.java index c260bf2..1c193b4 100644 --- a/src/main/java/kr/co/uplus/ez/config/SecurityConfig.java +++ b/src/main/java/kr/co/uplus/ez/config/SecurityConfig.java @@ -74,6 +74,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { "/api/v1/bo/mntrng/**", "/api/v1/bo/riskMgt/sendNum/**", "/api/v1/bo/stats/**", + "/api/v1/bo/homeMgt/**", "/view/error/**" };