diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 47ebed72..8d7e0639 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -602,12 +602,15 @@ export default { return; } this.isPermission = this.dicts.includes(orgId); - // if(!this.courseInfo.device){ - this.courseInfo.device = 3; - if(this.isPermission){ - this.courseInfo.device = 4; + if(this.isPermission && !this.courseInfo && !this.courseInfo.device){ + this.courseInfo.device = 4; + }else{ + if(!this.courseInfo && !this.courseInfo.device){ + return; + }else{ + this.courseInfo.device = 3; } - // } + } console.log("--- 监听结束 this.isPermission = ",this.isPermission) }, // 关键字的更改