
--- client/resources/api/index.js
+++ client/resources/api/index.js
... | ... | @@ -6,19 +6,19 @@ |
6 | 6 |
try { |
7 | 7 |
const token = store.state.authorization; |
8 | 8 |
if (!token) return true; |
9 |
- |
|
9 |
+ |
|
10 | 10 |
// JWT 토큰 디코딩 |
11 | 11 |
const base64String = token.split('.')[1]; |
12 | 12 |
const base64 = base64String.replace(/-/g, '+').replace(/_/g, '/'); |
13 | 13 |
const jsonPayload = decodeURIComponent(atob(base64).split('').map(c => { |
14 | 14 |
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); |
15 | 15 |
}).join('')); |
16 |
- |
|
16 |
+ |
|
17 | 17 |
const payload = JSON.parse(jsonPayload); |
18 | 18 |
// exp는 토큰 만료 시간(Unix timestamp) |
19 | 19 |
const expTime = payload.exp * 1000; // 밀리초 단위로 변환 |
20 | 20 |
const currentTime = new Date().getTime(); |
21 |
- |
|
21 |
+ |
|
22 | 22 |
// 토큰 만료 5분 전부터는 미리 갱신 |
23 | 23 |
return currentTime > (expTime - 5 * 60 * 1000); |
24 | 24 |
} catch (e) { |
... | ... | @@ -37,10 +37,9 @@ |
37 | 37 |
}); |
38 | 38 |
|
39 | 39 |
if (res.status === 200) { |
40 |
- console.log("토큰 재발급 성공! 굿~"); |
|
41 | 40 |
// 새로 발급 받은 AccessToken 저장 |
42 | 41 |
store.commit('setAuthorization', res.headers.authorization); |
43 |
- |
|
42 |
+ |
|
44 | 43 |
// JWT 토큰 디코딩 |
45 | 44 |
const base64String = store.state.authorization.split('.')[1]; |
46 | 45 |
const base64 = base64String.replace(/-/g, '+').replace(/_/g, '/'); |
... | ... | @@ -50,10 +49,10 @@ |
50 | 49 |
const mbr = JSON.parse(jsonPayload); |
51 | 50 |
store.commit("setUserNm", mbr.userNm); // 사용자 이름 저장 |
52 | 51 |
store.commit('setRoles', mbr.roles); // 사용자 역할 저장 |
53 |
- |
|
52 |
+ |
|
54 | 53 |
return true; |
55 | 54 |
} |
56 |
- |
|
55 |
+ |
|
57 | 56 |
throw new Error("토큰 재발급 요청 실패"); |
58 | 57 |
} catch (error) { |
59 | 58 |
console.error("토큰 재발급 중 오류:", error); |
... | ... | @@ -127,24 +126,24 @@ |
127 | 126 |
} |
128 | 127 |
|
129 | 128 |
// 401 에러 처리 (토큰 만료) |
130 |
- if (error.response && |
|
131 |
- error.response.status === 401 && |
|
132 |
- error.response.data.message === '로그인 시간이 만료되었습니다.' && |
|
129 |
+ if (error.response && |
|
130 |
+ error.response.status === 401 && |
|
131 |
+ error.response.data.message === '로그인 시간이 만료되었습니다.' && |
|
133 | 132 |
!originalReq._retry) { |
134 |
- |
|
133 |
+ |
|
135 | 134 |
originalReq._retry = true; // 재시도 플래그 설정 |
136 |
- |
|
135 |
+ |
|
137 | 136 |
try { |
138 | 137 |
// 토큰 재발급 |
139 | 138 |
await refreshToken(); |
140 |
- |
|
139 |
+ |
|
141 | 140 |
// 새 토큰으로 헤더 업데이트 |
142 | 141 |
originalReq.headers.Authorization = store.state.authorization; |
143 |
- |
|
142 |
+ |
|
144 | 143 |
// multipart/form-data 요청 처리를 위한 특별 처리 |
145 |
- if (originalReq.headers['Content-Type'] && |
|
144 |
+ if (originalReq.headers['Content-Type'] && |
|
146 | 145 |
originalReq.headers['Content-Type'].includes('multipart/form-data')) { |
147 |
- |
|
146 |
+ |
|
148 | 147 |
// 완전히 새로운 요청 생성 |
149 | 148 |
return axios({ |
150 | 149 |
...originalReq, |
... | ... | @@ -156,7 +155,7 @@ |
156 | 155 |
transformRequest: [(data) => data] |
157 | 156 |
}); |
158 | 157 |
} |
159 |
- |
|
158 |
+ |
|
160 | 159 |
// 일반 요청은 기존 client 사용하여 재시도 |
161 | 160 |
return client(originalReq); |
162 | 161 |
} catch (refreshError) { |
--- client/views/App.vue
+++ client/views/App.vue
... | ... | @@ -36,7 +36,6 @@ |
36 | 36 |
|
37 | 37 |
if (res.status === 200) { |
38 | 38 |
// 새로 발급 받은 AccessToken 저장 |
39 |
- console.log("토큰 재발급 성공! 굿~"); |
|
40 | 39 |
this.store.commit('setAuthorization', res.headers.authorization); |
41 | 40 |
// JWT 토큰 디코딩 |
42 | 41 |
const base64String = res.headers.authorization.split('.')[1]; |
... | ... | @@ -52,7 +51,6 @@ |
52 | 51 |
this.$router.push('/login.page'); |
53 | 52 |
} |
54 | 53 |
} catch (error) { |
55 |
- console.error("Refresh token error:", error); |
|
56 | 54 |
alert('세션이 종료되었습니다.\n로그인을 새로 해주세요.'); |
57 | 55 |
this.store.commit("setStoreReset"); |
58 | 56 |
this.$router.push('/login.page'); // 로그인 페이지로 리다이렉트 |
--- client/views/component/SearchFormComponent.vue
+++ client/views/component/SearchFormComponent.vue
... | ... | @@ -209,18 +209,16 @@ |
209 | 209 |
const response = await findAllByNullProc(); |
210 | 210 |
if (response.data && response.data.data && response.data.data.ctgry) { |
211 | 211 |
this.categoryList = response.data.data.ctgry; |
212 |
- console.log("카테고리 조회 성공:", this.categoryList); |
|
213 | 212 |
} else { |
214 |
- console.error("카테고리 데이터 형식이 잘못되었습니다:", response.data); |
|
215 | 213 |
this.categoryList = []; |
216 | 214 |
} |
217 | 215 |
} catch (error) { |
218 | 216 |
this.categoryList = []; // 카테고리 목록 초기화 |
219 |
- console.error("카테고리 조회 실패:", error); |
|
220 | 217 |
|
221 | 218 |
if (error.response) { |
222 | 219 |
alert(error.response.data.message); |
223 | 220 |
} |
221 |
+ |
|
224 | 222 |
console.error(error.message); |
225 | 223 |
} |
226 | 224 |
}, |
--- client/views/layout/Header.vue
+++ client/views/layout/Header.vue
... | ... | @@ -8,47 +8,24 @@ |
8 | 8 |
<div class="nav-wrap"> |
9 | 9 |
<nav> |
10 | 10 |
<ul v-if="$store.state.roles.length > 0"> |
11 |
- <li @click="updateMenuStats('MENU_00000001')" |
|
12 |
- @mouseover="showSubmenu('MENU_00000001')" @mouseleave="hideSubmenu('MENU_00000001')" :class="{ 'active-menu': isActiveMenu('MENU_00000001') }"> |
|
13 |
- 기록물 |
|
14 |
- <div class="submenu" v-if="submenuVisible['MENU_00000001']" |
|
15 |
- @mouseover="showSubmenu('MENU_00000001')" @mouseleave="hideSubmenu('MENU_00000001')"> |
|
16 |
- <p>• <router-link :to="{ path: '/PicHistorySearch.page' }" |
|
17 |
- @click.native="hideSubmenu('MENU_00000001')"> |
|
18 |
- 사진 기록물 |
|
19 |
- </router-link> |
|
11 |
+ <li @click="updateMenuStats('MENU_00000001')" @mouseover="showSubmenu('MENU_00000001')" @mouseleave="hideSubmenu('MENU_00000001')" :class="{ 'active-menu': isActiveMenu('MENU_00000001') }"> 기록물 <div class="submenu" v-if="submenuVisible['MENU_00000001']" @mouseover="showSubmenu('MENU_00000001')" @mouseleave="hideSubmenu('MENU_00000001')"> |
|
12 |
+ <p>• <router-link :to="{ path: '/PicHistorySearch.page' }" @click="hideSubmenu('MENU_00000001')"> 사진 기록물 </router-link> |
|
20 | 13 |
</p> |
21 | 14 |
<div class="hr"></div> |
22 |
- <p>• <router-link :to="{ path: '/VideoHistorySearch.page' }" |
|
23 |
- @click.native="hideSubmenu('MENU_00000001')" > |
|
24 |
- 영상 기록물 |
|
25 |
- </router-link> |
|
15 |
+ <p>• <router-link :to="{ path: '/VideoHistorySearch.page' }" @click="hideSubmenu('MENU_00000001')"> 영상 기록물 </router-link> |
|
26 | 16 |
</p> |
27 | 17 |
</div> |
28 | 18 |
</li> |
29 |
- |
|
30 |
- <li @click="updateMenuStats('MENU_00000004')" |
|
31 |
- @mouseover="showSubmenu('MENU_00000004')" @mouseleave="hideSubmenu('MENU_00000004')" :class="{ 'active-menu': isActiveMenu('MENU_00000004') }"> |
|
32 |
- 언론에서 바라본 구미시 |
|
33 |
- <div class="submenu" v-if="submenuVisible['MENU_00000004']" |
|
34 |
- @mouseover="showSubmenu('MENU_00000004')" @mouseleave="hideSubmenu('MENU_00000004')"> |
|
35 |
- <p>• <router-link :to="{ path: '/MediaVideoSearch.page' }" |
|
36 |
- @click.native="hideSubmenu('MENU_00000004')"> |
|
37 |
- 미디어 영상 |
|
38 |
- </router-link> |
|
19 |
+ <li @click="updateMenuStats('MENU_00000004')" @mouseover="showSubmenu('MENU_00000004')" @mouseleave="hideSubmenu('MENU_00000004')" :class="{ 'active-menu': isActiveMenu('MENU_00000004') }"> 언론에서 바라본 구미시 <div class="submenu" v-if="submenuVisible['MENU_00000004']" @mouseover="showSubmenu('MENU_00000004')" @mouseleave="hideSubmenu('MENU_00000004')"> |
|
20 |
+ <p>• <router-link :to="{ path: '/MediaVideoSearch.page' }" @click="hideSubmenu('MENU_00000004')"> 미디어 영상 </router-link> |
|
39 | 21 |
</p> |
40 | 22 |
<div class="hr"></div> |
41 |
- <p>• <router-link :to="{ path: '/NewsReleaseSearch.page' }" |
|
42 |
- @click.native="hideSubmenu('MENU_00000004')"> |
|
43 |
- 보도자료 |
|
44 |
- </router-link> |
|
23 |
+ <p>• <router-link :to="{ path: '/NewsReleaseSearch.page' }" @click="hideSubmenu('MENU_00000004')"> 보도자료 </router-link> |
|
45 | 24 |
</p> |
46 | 25 |
</div> |
47 | 26 |
</li> |
48 |
- <li v-if="$store.state.roles[0]?.authority === 'ROLE_ADMIN'"><router-link |
|
49 |
- :to="{ path: '/MemberManagement.page' }" @click.native="onMemberManagementClick" exact-active-class="active-menu">회원관리</router-link></li> |
|
50 |
- <li v-if="$store.state.roles[0]?.authority === 'ROLE_ADMIN'"><router-link |
|
51 |
- :to="{ path: '/CategoryManagement.page' }" @click.native="onCategoryManagementClick" exact-active-class="active-menu">카테고리 관리</router-link></li> |
|
27 |
+ <li v-if="$store.state.roles[0]?.authority === 'ROLE_ADMIN'"><router-link :to="{ path: '/MemberManagement.page' }" @click="onMemberManagementClick" exact-active-class="active-menu">회원관리</router-link></li> |
|
28 |
+ <li v-if="$store.state.roles[0]?.authority === 'ROLE_ADMIN'"><router-link :to="{ path: '/CategoryManagement.page' }" @click="onCategoryManagementClick" exact-active-class="active-menu">카테고리 관리</router-link></li> |
|
52 | 29 |
</ul> |
53 | 30 |
</nav> |
54 | 31 |
</div> |
... | ... | @@ -135,7 +112,7 @@ |
135 | 112 |
showSubmenu(menuId) { |
136 | 113 |
this.submenuVisible[menuId] = true; // Directly mutate the reactive object |
137 | 114 |
}, |
138 |
- |
|
115 |
+ |
|
139 | 116 |
// Hide the submenu for the given menu ID |
140 | 117 |
hideSubmenu(menuId) { |
141 | 118 |
this.submenuVisible[menuId] = false; // Directly mutate the reactive object |
... | ... | @@ -159,9 +136,6 @@ |
159 | 136 |
try { |
160 | 137 |
this.activeMenu = menuId; |
161 | 138 |
const response = await updateStatsByMenuId(menuId); |
162 |
- if (response.status === 200) { |
|
163 |
- console.log(`메뉴 ID ${menuId} 통계 업데이트 성공`); |
|
164 |
- } |
|
165 | 139 |
} catch (error) { |
166 | 140 |
console.error(`메뉴 ID ${menuId} 통계 업데이트 중 오류:`, error); |
167 | 141 |
} |
... | ... | @@ -170,7 +144,6 @@ |
170 | 144 |
// 백엔드 로그아웃 API 호출 |
171 | 145 |
logOutProc() |
172 | 146 |
.then(() => { |
173 |
- console.log('로그아웃 성공 - 서버 측 쿠키 삭제 완료'); |
|
174 | 147 |
this.$store.commit('setStoreReset'); // 로그아웃 성공 후 스토어 초기화 |
175 | 148 |
this.$router.push({ path: '/Login.page' }); // 로그인 페이지로 리다이렉트 |
176 | 149 |
}) |
--- client/views/pages/AppRouter.js
+++ client/views/pages/AppRouter.js
... | ... | @@ -160,9 +160,8 @@ |
160 | 160 |
if (menuId) { |
161 | 161 |
try { |
162 | 162 |
await updateStatsByMenuId(menuId); |
163 |
- console.log(`메뉴 통계 업데이트 성공: ${menuId}`); |
|
164 | 163 |
} catch (error) { |
165 |
- console.log(`메뉴 통계 업데이트 실패: ${menuId}`, error); |
|
164 |
+ console.error(`메뉴 통계 업데이트 실패: ${menuId}`, error); |
|
166 | 165 |
} |
167 | 166 |
} |
168 | 167 |
|
--- client/views/pages/bbsDcry/photo/PicHistoryInsert.vue
+++ client/views/pages/bbsDcry/photo/PicHistoryInsert.vue
... | ... | @@ -226,8 +226,6 @@ |
226 | 226 |
if (thumbFile) { |
227 | 227 |
this.selectedThumb = thumbFile.fileNm; |
228 | 228 |
} |
229 |
- |
|
230 |
- console.log(this.requestDTO); |
|
231 | 229 |
}, |
232 | 230 |
|
233 | 231 |
// 카테고리 모달 열기/닫기 |
--- client/views/pages/bbsDcry/video/VideoHistoryInsert.vue
+++ client/views/pages/bbsDcry/video/VideoHistoryInsert.vue
... | ... | @@ -199,8 +199,6 @@ |
199 | 199 |
|
200 | 200 |
this.multipartFiles = []; |
201 | 201 |
this.selectedCtgries = dcry.ctgrys.length > 0 ? dcry.ctgrys : []; |
202 |
- |
|
203 |
- console.log(this.requestDTO); |
|
204 | 202 |
}, |
205 | 203 |
|
206 | 204 |
// 카테고리 모달 열기/닫기 |
--- client/views/pages/bbsNesDta/NewsReleaseInsert.vue
+++ client/views/pages/bbsNesDta/NewsReleaseInsert.vue
... | ... | @@ -184,8 +184,6 @@ |
184 | 184 |
|
185 | 185 |
this.multipartFiles = []; |
186 | 186 |
this.selectedCtgries = nesDta.ctgrys.length > 0 ? nesDta.ctgrys : []; |
187 |
- |
|
188 |
- console.log(this.requestDTO); |
|
189 | 187 |
}, |
190 | 188 |
|
191 | 189 |
// 카테고리 모달 열기/닫기 |
--- client/views/pages/ctgry/CategoryManagement.vue
+++ client/views/pages/ctgry/CategoryManagement.vue
... | ... | @@ -160,7 +160,6 @@ |
160 | 160 |
const response = await findAllCategoryProc(this.searchReqDTO); |
161 | 161 |
if (response.status === 200) { |
162 | 162 |
this.selectedCategories = response.data.data.ctgry; // API 응답에서 카테고리 목록을 가져옴 |
163 |
- console.log("가져온 카테고리들 ", this.searchCategories); |
|
164 | 163 |
} |
165 | 164 |
} catch (error) { |
166 | 165 |
console.error("검색 중 오류 발생:", error); |
... | ... | @@ -183,8 +182,6 @@ |
183 | 182 |
useAt: item.useAt, |
184 | 183 |
dc: item.dc |
185 | 184 |
}; |
186 |
- |
|
187 |
- console.log("선택 된 카테고리", this.selectedCategory); |
|
188 | 185 |
}, |
189 | 186 |
// 삭제 또는 복구 로직 |
190 | 187 |
async updateByUseAtCategory() { |
... | ... | @@ -251,7 +248,7 @@ |
251 | 248 |
window.location.reload(); |
252 | 249 |
} |
253 | 250 |
} catch (error) { |
254 |
- // HTTP 오류가 발생한 경우 |
|
251 |
+ // HTTP 오류가 발생한 경우 |
|
255 | 252 |
const errorMessage = error.response?.data?.message || "등록이 실패하였습니다."; |
256 | 253 |
alert(errorMessage); // 오류 메시지 표시 |
257 | 254 |
this.searchCategories(); |
... | ... | @@ -269,7 +266,7 @@ |
269 | 266 |
this.searchCategories(); |
270 | 267 |
} |
271 | 268 |
} catch (error) { |
272 |
- // HTTP 오류가 발생한 경우 |
|
269 |
+ // HTTP 오류가 발생한 경우 |
|
273 | 270 |
const errorMessage = error.response?.data?.message || "수정이 실패하였습니다."; |
274 | 271 |
alert(errorMessage); // 오류 메시지 표시 |
275 | 272 |
this.searchCategories(); |
... | ... | @@ -284,7 +281,7 @@ |
284 | 281 |
this.searchCategories(); |
285 | 282 |
} |
286 | 283 |
} catch (error) { |
287 |
- // HTTP 오류가 발생한 경우 |
|
284 |
+ // HTTP 오류가 발생한 경우 |
|
288 | 285 |
const errorMessage = error.response?.data?.message || "수정이이 실패하였습니다."; |
289 | 286 |
alert(errorMessage); // 오류 메시지 표시 |
290 | 287 |
this.searchCategories(); |
--- client/views/pages/login/Login.vue
+++ client/views/pages/login/Login.vue
... | ... | @@ -65,8 +65,6 @@ |
65 | 65 |
}, |
66 | 66 |
}); |
67 | 67 |
|
68 |
- console.log(response); // 응답 확인 |
|
69 |
- |
|
70 | 68 |
if (response.status === 200) { |
71 | 69 |
const newToken = response.headers.authorization; |
72 | 70 |
this.store.commit("setAuthorization", newToken); |
--- client/views/pages/main/Main.vue
+++ client/views/pages/main/Main.vue
... | ... | @@ -183,7 +183,7 @@ |
183 | 183 |
]; |
184 | 184 |
const isAutoplay = ref(true); // Tracks the autoplay state |
185 | 185 |
let swiperInstance = null; |
186 |
- |
|
186 |
+ |
|
187 | 187 |
onMounted(() => { |
188 | 188 |
// Main Swiper with Fraction Pagination |
189 | 189 |
const mainSwiper = new Swiper(swiperContainer.value, { |
... | ... | @@ -216,7 +216,6 @@ |
216 | 216 |
pagingSwiper.controller.control = mainSwiper; |
217 | 217 |
}); |
218 | 218 |
const toggleAutoplay = () => { |
219 |
- console.log(toggleAutoplay) |
|
220 | 219 |
if (isAutoplay.value) { |
221 | 220 |
swiperInstance.autoplay.stop(); // Stop autoplay |
222 | 221 |
} else { |
... | ... | @@ -290,7 +289,7 @@ |
290 | 289 |
routeName: 'NewsReleaseSearch', |
291 | 290 |
}, |
292 | 291 |
], |
293 |
- |
|
292 |
+ |
|
294 | 293 |
currentSlide: 1, // To track the current slide |
295 | 294 |
totalSlides: 3, |
296 | 295 |
|
--- client/views/pages/member/MemberManagement.vue
+++ client/views/pages/member/MemberManagement.vue
... | ... | @@ -176,7 +176,7 @@ |
176 | 176 |
passwordCheck: null, |
177 | 177 |
// 비밀번호 유효성 체크를 위한 변수 |
178 | 178 |
isPasswordValid: false, |
179 |
- // 비밀번호 초기화 |
|
179 |
+ // 비밀번호 초기화 |
|
180 | 180 |
passwordResetAt: { |
181 | 181 |
oldPassword: "qwer1234!", |
182 | 182 |
newPassword: "qwer1234!", |
... | ... | @@ -191,7 +191,7 @@ |
191 | 191 |
{ authorCode: "ROLE_ADMIN" } |
192 | 192 |
] |
193 | 193 |
}, |
194 |
- // 선택된 사용자 복사 |
|
194 |
+ // 선택된 사용자 복사 |
|
195 | 195 |
copySelectedUser: { |
196 | 196 |
userNm: null, |
197 | 197 |
useAt: null, |
... | ... | @@ -270,7 +270,7 @@ |
270 | 270 |
|
271 | 271 |
} |
272 | 272 |
} catch (error) { |
273 |
- // HTTP 오류가 발생한 경우 |
|
273 |
+ // HTTP 오류가 발생한 경우 |
|
274 | 274 |
const errorMessage = error.response?.data?.message || "회원가입이 실패하였습니다."; |
275 | 275 |
alert(errorMessage); // 오류 메시지 표시 |
276 | 276 |
this.searchUsers(); |
... | ... | @@ -290,7 +290,7 @@ |
290 | 290 |
this.searchUsers(); |
291 | 291 |
} |
292 | 292 |
} catch (error) { |
293 |
- // HTTP 오류가 발생한 경우 |
|
293 |
+ // HTTP 오류가 발생한 경우 |
|
294 | 294 |
const errorMessage = error.response?.data?.message || "수정이 실패하였습니다."; |
295 | 295 |
alert(errorMessage); // 오류 메시지 표시 |
296 | 296 |
this.searchUsers(); |
... | ... | @@ -306,7 +306,7 @@ |
306 | 306 |
this.searchUsers(); |
307 | 307 |
} |
308 | 308 |
} catch (error) { |
309 |
- // HTTP 오류가 발생한 경우 |
|
309 |
+ // HTTP 오류가 발생한 경우 |
|
310 | 310 |
const errorMessage = error.response?.data?.message || "수정이 실패하였습니다."; |
311 | 311 |
alert(errorMessage); // 오류 메시지 표시 |
312 | 312 |
this.searchUsers(); |
... | ... | @@ -336,7 +336,6 @@ |
336 | 336 |
const response = await findAllUsers(this.searchReqDTO); |
337 | 337 |
if (response.status === 200) { |
338 | 338 |
this.selectedUsers = response.data.data.users; |
339 |
- console.log("가져온 사용자들 ", response); |
|
340 | 339 |
} |
341 | 340 |
} catch (error) { |
342 | 341 |
console.error("검색 중 오류 발생:", error); |
... | ... | @@ -360,8 +359,6 @@ |
360 | 359 |
|
361 | 360 |
// 깊은 복사를 통해 copySelectedUser를 설정 |
362 | 361 |
this.copySelectedUser = JSON.parse(JSON.stringify(this.selectedUser)); |
363 |
- |
|
364 |
- console.log("선택 된 카테고리", this.selectedUser.authorList[0]); |
|
365 | 362 |
}, |
366 | 363 |
// 스위치 사용여부 |
367 | 364 |
toggleUseAt() { |
... | ... | @@ -405,7 +402,7 @@ |
405 | 402 |
} |
406 | 403 |
} |
407 | 404 |
}, |
408 |
- // 비밀번호 초기화 |
|
405 |
+ // 비밀번호 초기화 |
|
409 | 406 |
async restPassword() { |
410 | 407 |
if (confirm("비밀번호 초기화를 하시겠습니까?")) { |
411 | 408 |
if (this.userId == null || this.userId == '') { |
... | ... | @@ -418,7 +415,7 @@ |
418 | 415 |
this.searchUsers(); |
419 | 416 |
} |
420 | 417 |
} catch (error) { |
421 |
- // HTTP 오류가 발생한 경우 |
|
418 |
+ // HTTP 오류가 발생한 경우 |
|
422 | 419 |
const errorMessage = error.response?.data?.message || "비밀번호 초기화에 실패하였습니다."; |
423 | 420 |
alert(errorMessage); // 오류 메시지 표시 |
424 | 421 |
this.searchUsers(); |
--- client/views/pages/user/MyInfo.vue
+++ client/views/pages/user/MyInfo.vue
... | ... | @@ -113,12 +113,9 @@ |
113 | 113 |
// 사용자 정보를 업데이트하는 API 호출 |
114 | 114 |
const response = await updateUsers(this.$store.state.userId, this.userInfo); |
115 | 115 |
|
116 |
- console.log(response); // 응답 확인 |
|
117 |
- |
|
118 | 116 |
if (response.status === 200) { |
119 | 117 |
logOutProc() |
120 | 118 |
.then(() => { |
121 |
- console.log('로그아웃 성공 - 서버 측 쿠키 삭제 완료'); |
|
122 | 119 |
this.$store.commit('setStoreReset'); // 로그아웃 성공 후 스토어 초기화 |
123 | 120 |
this.$router.push({ path: '/Login.page' }); // 로그인 페이지로 리다이렉트 |
124 | 121 |
}) |
... | ... | @@ -160,7 +157,7 @@ |
160 | 157 |
window.location.reload(); // 페이지 새로 고침 |
161 | 158 |
} |
162 | 159 |
} catch (error) { |
163 |
- // HTTP 오류가 발생한 경우 |
|
160 |
+ // HTTP 오류가 발생한 경우 |
|
164 | 161 |
const errorMessage = error.response?.data?.message || "비밀번호 변경이 실패하였습니다."; |
165 | 162 |
alert(errorMessage); // 오류 메시지 표시 |
166 | 163 |
window.location.reload(); // 페이지 새로 고침 |
... | ... | @@ -185,7 +182,7 @@ |
185 | 182 |
window.location.reload(); // 페이지 새로 고침 |
186 | 183 |
} |
187 | 184 |
} catch (error) { |
188 |
- // HTTP 오류가 발생한 경우 |
|
185 |
+ // HTTP 오류가 발생한 경우 |
|
189 | 186 |
const errorMessage = error.response?.data?.message || "회원정보 변경이 실패하였습니다."; |
190 | 187 |
alert(errorMessage); // 오류 메시지 표시 |
191 | 188 |
window.location.reload(); // 페이지 새로 고침 |
... | ... | @@ -212,7 +209,7 @@ |
212 | 209 |
window.location.reload(); // 페이지 새로 고침 |
213 | 210 |
} |
214 | 211 |
} catch (error) { |
215 |
- // HTTP 오류가 발생한 경우 |
|
212 |
+ // HTTP 오류가 발생한 경우 |
|
216 | 213 |
const errorMessage = error.response?.data?.message || "비밀번호 변경이 실패하였습니다."; |
217 | 214 |
alert(errorMessage); // 오류 메시지 표시 |
218 | 215 |
window.location.reload(); // 페이지 새로 고침 |
... | ... | @@ -237,7 +234,7 @@ |
237 | 234 |
window.location.reload(); // 페이지 새로 고침 |
238 | 235 |
} |
239 | 236 |
} catch (error) { |
240 |
- // HTTP 오류가 발생한 경우 |
|
237 |
+ // HTTP 오류가 발생한 경우 |
|
241 | 238 |
const errorMessage = error.response?.data?.message || "비밀번호 변경이 실패하였습니다."; |
242 | 239 |
alert(errorMessage); // 오류 메시지 표시 |
243 | 240 |
window.location.reload(); // 페이지 새로 고침 |
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?