수정건 수정

This commit is contained in:
USER
2022-07-27 10:31:41 +09:00
parent 3093a33015
commit d5bf4444a3
22 changed files with 89 additions and 58 deletions

View File

@@ -62,10 +62,6 @@ const router = new Router({
...mntrngRoutes,
...riskmgtRoutes,
...monthRoutes,
]
},
{path: '*', redirect: '/view/error/404'}
@@ -74,12 +70,11 @@ const router = new Router({
router.beforeEach((to, from, next) => {
const isPublic = to.matched.some(record => record.meta.public);
const loggedIn = !!tokenSvc.getToken();
if (!isPublic && !loggedIn) {
const loggedIn = !!tokenSvc.getToken();
if (!isPublic && !loggedIn) {
return next('/login');
}else{
var nextUrl = to.fullPath;
}else{
var nextUrl = to.fullPath;
if(nextUrl == '/'){
console.log(store.getters);
const rootUrl = store.getters['login/getRootUrl'];