From 5d01c1fc6bb0825789203d3735dd4ce11afdab79 Mon Sep 17 00:00:00 2001 From: sunli_tydic Date: Fri, 19 Dec 2025 22:46:44 +0800 Subject: [PATCH] =?UTF-8?q?ai=E8=A7=86=E9=A2=91=E4=B8=80=E6=9C=9F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=8F=90=E4=BA=A4-=E9=81=BF=E5=85=8D=E6=97=A0?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=97=B6=E8=AF=AD=E7=A7=8D=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index d2540ced..26074c88 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -1023,6 +1023,10 @@ export default { // 初始化ai数据 initAiData() { if (!this.aiPermission) { + // 如果ai设置为空则给默认值 - 会看成新增状态 + if(this.courseInfo.aiSet === null || this.courseInfo.aiSet === '' || this.courseInfo.aiSet === undefined){ + this.courseInfo.languageCode = ['zh-CN', 'en-US']; + } return; } // 如果ai设置为空则给默认值 - 会看成新增状态