하석형 하석형 04-09
250409 하석형 헤더 로그아웃 및 Context Path 변경 시 로그아웃 오류 수정
@66315f3855c249b1abbe327c157ab105dfa66a34
client/views/layout/AdminHeader.vue
--- client/views/layout/AdminHeader.vue
+++ client/views/layout/AdminHeader.vue
@@ -50,9 +50,9 @@
         // 로그 아웃
         async fnlogOut() {
             await this.logout();
-            this.$router.push({
-                path: this.$filters.ctxPath("/login.page"),
-            });
+            // this.$router.push({
+            //     path: this.$filters.ctxPath("/login.page"),
+            // });
         },
         // 캐시 초기화
         async cacheClean() {
client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
--- client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
+++ client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
@@ -180,14 +180,15 @@
               storeCtx = '';
             }
             store.commit("setContextPath", storeCtx); // 캐시 초기화 요청을 보내기 위한 Context Path 정보 저장
-            const cacheRes = await cacheReSet(); // 캐시 초기화
+            await this.$store.dispatch("logout");
+            /* const cacheRes = await cacheReSet(); // 캐시 초기화
             if (cacheRes.status !== 200) {
               alert(cacheRes.data.message);
             }
             store.commit("setStoreReset"); // 캐시 초기화 후 Store 초기화
             store.commit("setContextPath", storeCtx); // 라우터 Context Path 정보 저장
             window.location.href = `${storeCtx}/login.page`;
-            // window.location.href = `${storeCtx}/adm/main.page`;
+            // window.location.href = `${storeCtx}/adm/main.page`; */
           } else {
             alert(res.data.message);
           }
Add a comment
List