From ffd6e41767c83f80e83bb489aa640387c1032d50 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 2 Apr 2026 16:46:33 +0900 Subject: [PATCH] =?UTF-8?q?feat(live-recommend):=20=EC=B6=94=EC=B2=9C=20?= =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20=EC=8B=9C=20=EC=96=B8=EC=96=B4=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?(ko/ja/en)=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20=EC=9A=94=EC=B2=AD=EC=97=90=20lang=20=ED=8F=AC?= =?UTF-8?q?=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 등록 폼에 언어 v-select 추가(v-if="!is_modify") - 데이터 모델에 banner.lang 기본값 'ko'와 langItems(ko/ja/en) 추가 - submit 요청에 ISO 639 코드(lang) 포함 - 취소 시 초기화에 언어 기본값 유지 --- src/views/Live/LiveRecommend.vue | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/views/Live/LiveRecommend.vue b/src/views/Live/LiveRecommend.vue index bdc4538..df76afb 100644 --- a/src/views/Live/LiveRecommend.vue +++ b/src/views/Live/LiveRecommend.vue @@ -153,6 +153,22 @@ + + + + 언어 + + + + + + @@ -234,6 +250,12 @@ export default { start_date: null, end_date: null, is_adult: false, + lang: 'ko', + languageOptions: [ + { label: '한국어', value: 'ko' }, + { label: '일본어', value: 'ja' }, + { label: '영어', value: 'en' }, + ], headers: [ { text: '이미지', @@ -358,6 +380,7 @@ export default { formData.append("start_date", this.start_date) formData.append("end_date", this.end_date) formData.append("is_adult", this.is_adult) + formData.append("lang", this.lang) const res = await api.createRecommendCreatorBanner(formData); if (res.status === 200 && res.data.success === true) { @@ -383,7 +406,8 @@ export default { this.image === null || this.creator_id === null || this.start_date === null || - this.end_date === null + this.end_date === null || + this.lang === null ) { this.notifyError('내용을 입력하세요') } else { @@ -398,6 +422,9 @@ export default { this.creator_id = null this.start_date = null this.end_date = null + this.is_adult = false + this.lang = 'ko' + this.selected_recommend_live = null }, notifyError(message) { @@ -471,6 +498,8 @@ export default { } }, showWriteDialog() { + this.selected_recommend_live = null + this.lang = 'ko' this.show_write_dialog = true }, }