feat(캐릭터 배너): 등록 성공시에만 다이얼로그 닫고 배너 목록 새로고침하도록 수정

This commit is contained in:
Yu Sung
2025-08-12 23:12:17 +09:00
parent 8f502f6d4d
commit 231539fd27

View File

@@ -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('배너 저장에 실패했습니다.');