From af45c0093e90eafad3799e1984d7a042835d4fc0 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 21 Jan 2025 21:27:24 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=B0=B0?= =?UTF-8?q?=EB=84=88=20=EB=93=B1=EB=A1=9D/=EC=88=98=EC=A0=95=20=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=96=B4=20=ED=8C=9D=EC=97=85=20-=20=ED=83=AD=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Content/ContentMainTopBanner.vue | 33 ++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/views/Content/ContentMainTopBanner.vue b/src/views/Content/ContentMainTopBanner.vue index 305aab6..a030ee0 100644 --- a/src/views/Content/ContentMainTopBanner.vue +++ b/src/views/Content/ContentMainTopBanner.vue @@ -89,6 +89,26 @@ 배너 등록 + + + + 메인 탭 + + + + + + + + @@ -307,7 +327,7 @@ export default { show_write_dialog: false, show_delete_confirm_dialog: false, selected_banner: {}, - banner: {type: 'CREATOR'}, + banner: {type: 'CREATOR', tab_id: 1}, banners: [], events: [], creators: [], @@ -359,7 +379,7 @@ export default { this.is_selecting = false this.show_write_dialog = false this.show_delete_confirm_dialog = false - this.banner = {type: 'CREATOR'} + this.banner = {type: 'CREATOR', tab_id: 1} this.selected_banner = {} this.search_query_creator = '' this.search_query_series = '' @@ -411,6 +431,7 @@ export default { this.banner.series_title = banner.seriesTitle this.banner.link = banner.link this.banner.is_adult = banner.isAdult + this.banner.tab_id = banner.tabId setTimeout(() => { this.is_selecting = false; // 선택 상태 해제 @@ -489,6 +510,10 @@ export default { request.seriesId = this.banner.series_id } + if (this.banner.tab_id !== 1) { + request.tabId = this.banner.tab_id + } + formData.append("request", JSON.stringify(request)) const res = await api.saveBanner(formData) @@ -560,6 +585,10 @@ export default { request.isAdult = this.banner.is_adult } + if (this.selected_banner.tabId !== this.banner.tab_id) { + request.tabId = this.banner.tab_id + } + formData.append("request", JSON.stringify(request)) const res = await api.modifyBanner(formData)