mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 01:04:20 +09:00
공지사항 인증 URL 등록 처리
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user