From 231539fd27d8c22f03072aa5bc9a7d7e1b2b31cc Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 12 Aug 2025 23:12:17 +0900 Subject: [PATCH] =?UTF-8?q?feat(=EC=BA=90=EB=A6=AD=ED=84=B0=20=EB=B0=B0?= =?UTF-8?q?=EB=84=88):=20=EB=93=B1=EB=A1=9D=20=EC=84=B1=EA=B3=B5=EC=8B=9C?= =?UTF-8?q?=EC=97=90=EB=A7=8C=20=EB=8B=A4=EC=9D=B4=EC=96=BC=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EB=8B=AB=EA=B3=A0=20=EB=B0=B0=EB=84=88=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=20=EC=83=88=EB=A1=9C=EA=B3=A0=EC=B9=A8=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Chat/CharacterBanner.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/Chat/CharacterBanner.vue b/src/views/Chat/CharacterBanner.vue index 5858852..5b6f93c 100644 --- a/src/views/Chat/CharacterBanner.vue +++ b/src/views/Chat/CharacterBanner.vue @@ -366,9 +366,10 @@ export default { // 더 불러올 데이터가 있는지 확인 this.hasMoreItems = newBanners.length > 0; this.page++; + } else { + this.notifyError('배너 목록을 불러오는데 실패했습니다.'); } } catch (error) { - console.error('배너 목록 로드 오류:', error); this.notifyError('배너 목록을 불러오는데 실패했습니다.'); } finally { this.isLoading = false; @@ -504,14 +505,13 @@ export default { }); if (response && response.status === 200 && response.data && response.data.success === true) { this.notifySuccess('배너가 추가되었습니다.'); + // 다이얼로그 닫고 배너 목록 새로고침 + this.closeDialog(); + this.refreshBanners(); } else { this.notifyError('배너 추가를 실패했습니다.'); } } - - // 다이얼로그 닫고 배너 목록 새로고침 - this.closeDialog(); - this.refreshBanners(); } catch (error) { console.error('배너 저장 오류:', error); this.notifyError('배너 저장에 실패했습니다.');