
250409 하석형 헤더 로그아웃 및 Context Path 변경 시 로그아웃 오류 수정
@66315f3855c249b1abbe327c157ab105dfa66a34
--- client/views/layout/AdminHeader.vue
+++ client/views/layout/AdminHeader.vue
... | ... | @@ -50,9 +50,9 @@ |
50 | 50 |
// 로그 아웃 |
51 | 51 |
async fnlogOut() { |
52 | 52 |
await this.logout(); |
53 |
- this.$router.push({ |
|
54 |
- path: this.$filters.ctxPath("/login.page"), |
|
55 |
- }); |
|
53 |
+ // this.$router.push({ |
|
54 |
+ // path: this.$filters.ctxPath("/login.page"), |
|
55 |
+ // }); |
|
56 | 56 |
}, |
57 | 57 |
// 캐시 초기화 |
58 | 58 |
async cacheClean() { |
--- client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
+++ client/views/pages/adm/system/LoginPolicy/LoginPolicy.vue
... | ... | @@ -180,14 +180,15 @@ |
180 | 180 |
storeCtx = ''; |
181 | 181 |
} |
182 | 182 |
store.commit("setContextPath", storeCtx); // 캐시 초기화 요청을 보내기 위한 Context Path 정보 저장 |
183 |
- const cacheRes = await cacheReSet(); // 캐시 초기화 |
|
183 |
+ await this.$store.dispatch("logout"); |
|
184 |
+ /* const cacheRes = await cacheReSet(); // 캐시 초기화 |
|
184 | 185 |
if (cacheRes.status !== 200) { |
185 | 186 |
alert(cacheRes.data.message); |
186 | 187 |
} |
187 | 188 |
store.commit("setStoreReset"); // 캐시 초기화 후 Store 초기화 |
188 | 189 |
store.commit("setContextPath", storeCtx); // 라우터 Context Path 정보 저장 |
189 | 190 |
window.location.href = `${storeCtx}/login.page`; |
190 |
- // window.location.href = `${storeCtx}/adm/main.page`; |
|
191 |
+ // window.location.href = `${storeCtx}/adm/main.page`; */ |
|
191 | 192 |
} else { |
192 | 193 |
alert(res.data.message); |
193 | 194 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?