From 9c768337c6c0fe2803a7123ac4f968a18fb6bd63 Mon Sep 17 00:00:00 2001 From: joshen Date: Sun, 20 Jul 2025 18:23:55 +0800 Subject: [PATCH] test2 --- src/components/Course/courseForm.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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) }, // 关键字的更改