Compare commits

..

2 Commits

2 changed files with 6 additions and 5 deletions

View File

@@ -43,6 +43,7 @@
> >
<v-list-item <v-list-item
:to="childItem.route" :to="childItem.route"
:exact="childItem.route === '/character'"
active-class="blue white--text" active-class="blue white--text"
> >
<v-list-item-title>{{ childItem.title }}</v-list-item-title> <v-list-item-title>{{ childItem.title }}</v-list-item-title>

View File

@@ -366,9 +366,10 @@ export default {
// 더 불러올 데이터가 있는지 확인 // 더 불러올 데이터가 있는지 확인
this.hasMoreItems = newBanners.length > 0; this.hasMoreItems = newBanners.length > 0;
this.page++; this.page++;
} else {
this.notifyError('배너 목록을 불러오는데 실패했습니다.');
} }
} catch (error) { } catch (error) {
console.error('배너 목록 로드 오류:', error);
this.notifyError('배너 목록을 불러오는데 실패했습니다.'); this.notifyError('배너 목록을 불러오는데 실패했습니다.');
} finally { } finally {
this.isLoading = false; this.isLoading = false;
@@ -504,14 +505,13 @@ export default {
}); });
if (response && response.status === 200 && response.data && response.data.success === true) { if (response && response.status === 200 && response.data && response.data.success === true) {
this.notifySuccess('배너가 추가되었습니다.'); this.notifySuccess('배너가 추가되었습니다.');
// 다이얼로그 닫고 배너 목록 새로고침
this.closeDialog();
this.refreshBanners();
} else { } else {
this.notifyError('배너 추가를 실패했습니다.'); this.notifyError('배너 추가를 실패했습니다.');
} }
} }
// 다이얼로그 닫고 배너 목록 새로고침
this.closeDialog();
this.refreshBanners();
} catch (error) { } catch (error) {
console.error('배너 저장 오류:', error); console.error('배너 저장 오류:', error);
this.notifyError('배너 저장에 실패했습니다.'); this.notifyError('배너 저장에 실패했습니다.');