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设置为空则给默认值 - 会看成新增状态