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)