From fbddf6806a7380d579d21b857b78055982bc6731 Mon Sep 17 00:00:00 2001 From: joshen Date: Sun, 20 Jul 2025 18:11:37 +0800 Subject: [PATCH] test --- src/components/Course/courseForm.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 63e79861..a7576925 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -565,10 +565,7 @@ export default { this.requireSaveCourse = true; console.log("--- watch比较 = ", oldVal.orgId, newVal.orgId); - if (newVal.orgId !== oldVal.orgId) { - console.log("--- watch newVal.orgId = ", newVal.orgId); - this.checkOrgPermission(newVal.orgId); - } + this.checkOrgPermission(newVal.orgId); }, deep: true } @@ -605,9 +602,11 @@ export default { return; } this.isPermission = this.dicts.includes(orgId); - this.courseInfo.device = 3; - if(this.isPermission){ - this.courseInfo.device = 4; + if(!this.courseInfo.device){ + this.courseInfo.device = 3; + if(this.isPermission){ + this.courseInfo.device = 4; + } } console.log("--- 监听结束 this.isPermission = ",this.isPermission) },