mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 23:18:19 +09:00
공지사항 인증 URL 등록 처리
This commit is contained in:
@@ -11,7 +11,6 @@ const state = {
|
|||||||
authToken: null,
|
authToken: null,
|
||||||
beforeUrl: null,
|
beforeUrl: null,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
loginPathUrl: null,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getters = {
|
const getters = {
|
||||||
@@ -27,7 +26,6 @@ const getters = {
|
|||||||
getAuthToken: (state) => state.authToken,
|
getAuthToken: (state) => state.authToken,
|
||||||
getBeforeUrl: (state) => state.beforeUrl,
|
getBeforeUrl: (state) => state.beforeUrl,
|
||||||
isLoading: (state) => state.isLoading,
|
isLoading: (state) => state.isLoading,
|
||||||
getLoginPathUrl: (state) => state.loginPathUrl,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const mutations = {
|
const mutations = {
|
||||||
@@ -73,9 +71,6 @@ const mutations = {
|
|||||||
isLoading: (state, value) => {
|
isLoading: (state, value) => {
|
||||||
state.isLoading = value;
|
state.isLoading = value;
|
||||||
},
|
},
|
||||||
setLoginPathUrl: (state, value) => {
|
|
||||||
state.loginPathUrl = value;
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const actions = {};
|
const actions = {};
|
||||||
|
|||||||
@@ -66,15 +66,12 @@ const router = new Router({
|
|||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
const isPublic = to.matched.some((record) => record.meta.public);
|
const isPublic = to.matched.some((record) => record.meta.public);
|
||||||
const loggedIn = !!tokenSvc.getToken();
|
const loggedIn = !!tokenSvc.getToken();
|
||||||
store.commit('login/setLoginPathUrl', isPublic + '/' + loggedIn + to.fullPath);
|
|
||||||
if (!isPublic && !loggedIn) {
|
if (!isPublic && !loggedIn) {
|
||||||
return next('/login');
|
return next('/login');
|
||||||
} else {
|
} else {
|
||||||
var nextUrl = to.fullPath;
|
var nextUrl = to.fullPath;
|
||||||
var fromUrl = from.fullPath;
|
var fromUrl = from.fullPath;
|
||||||
|
|
||||||
console.log(fromUrl);
|
|
||||||
|
|
||||||
var menuUrls = store.getters['login/getMenuUrls'];
|
var menuUrls = store.getters['login/getMenuUrls'];
|
||||||
if (menuUrls.length > 0) {
|
if (menuUrls.length > 0) {
|
||||||
var moveFlag = false;
|
var moveFlag = false;
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
"/api/v1/bo/mntrng/**",
|
"/api/v1/bo/mntrng/**",
|
||||||
"/api/v1/bo/riskMgt/sendNum/**",
|
"/api/v1/bo/riskMgt/sendNum/**",
|
||||||
"/api/v1/bo/stats/**",
|
"/api/v1/bo/stats/**",
|
||||||
|
"/api/v1/bo/homeMgt/**",
|
||||||
"/view/error/**"
|
"/view/error/**"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user