feat(sub-banner): 가로형 서브 배너 관리 화면 추가
홈/콘텐츠 placement별 가로형 서브 배너의 목록·생성·수정·삭제 UI를 추가한다. - 관리자 API(/admin/sub-banners) 호출 모듈 추가 - 주소 trim/blank→null 정규화, 최소 1개 주소 및 scheme 검증 - KST yyyy-MM-dd HH:mm 분 단위 기간 직렬화(생략 보존, 명시적 null 해제) - 수정 시 image 생략으로 기존 이미지 유지, 실패 시 입력·이미지 상태 보존 - 라우터/사이드 메뉴 항목 및 test:sub-banner 스크립트 등록
This commit is contained in:
@@ -155,6 +155,28 @@ export default {
|
||||
// ignore
|
||||
}
|
||||
|
||||
// 프로모션 메뉴에 '가로형 서브 배너' 하위 메뉴 추가
|
||||
try {
|
||||
const promotionMenu = this.items.find(m => m && Array.isArray(m.items)
|
||||
&& m.items.some(ci => ci && ci.route === '/promotion/event'))
|
||||
const subBannerItem = { title: '가로형 서브 배너', route: '/promotion/sub-banner', items: null }
|
||||
|
||||
if (promotionMenu) {
|
||||
if (!promotionMenu.items.some(ci => ci && ci.route === subBannerItem.route)) {
|
||||
promotionMenu.items.push(subBannerItem)
|
||||
}
|
||||
} else {
|
||||
this.items.push({
|
||||
title: '프로모션 관리',
|
||||
route: null,
|
||||
icon: 'mdi-bullhorn',
|
||||
items: [subBannerItem]
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
// 캐릭터 챗봇 메뉴 추가
|
||||
this.items.push({
|
||||
title: '캐릭터 챗봇',
|
||||
|
||||
Reference in New Issue
Block a user