xw hace 13 horas
padre
commit
1504f10742
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      src/views/course/coursePlaySourceConfig/index.vue

+ 7 - 2
src/views/course/coursePlaySourceConfig/index.vue

@@ -954,9 +954,14 @@ export default {
             this.form.setCompanyIds = "";
           }
 
+          // 处理companyId,将null转换为空字符串
+          if (this.form.companyId === null || this.form.companyId === undefined) {
+            this.form.companyId = '';
+          }
+
           if (this.form.customAuthEnabled === 0) {
-            this.form.miniAppAuthType = null;
-            this.form.userCourseAuthDomain = null;
+            this.form.miniAppAuthType = '';
+            this.form.userCourseAuthDomain = '';
           }
 
           console.log(this.form);