This commit is contained in:
joshen
2025-07-20 18:11:37 +08:00
parent 3cfa3ffec3
commit fbddf6806a

View File

@@ -565,10 +565,7 @@ export default {
this.requireSaveCourse = true; this.requireSaveCourse = true;
console.log("--- watch比较 = ", oldVal.orgId, newVal.orgId); console.log("--- watch比较 = ", oldVal.orgId, newVal.orgId);
if (newVal.orgId !== oldVal.orgId) { this.checkOrgPermission(newVal.orgId);
console.log("--- watch newVal.orgId = ", newVal.orgId);
this.checkOrgPermission(newVal.orgId);
}
}, },
deep: true deep: true
} }
@@ -605,9 +602,11 @@ export default {
return; return;
} }
this.isPermission = this.dicts.includes(orgId); this.isPermission = this.dicts.includes(orgId);
this.courseInfo.device = 3; if(!this.courseInfo.device){
if(this.isPermission){ this.courseInfo.device = 3;
this.courseInfo.device = 4; if(this.isPermission){
this.courseInfo.device = 4;
}
} }
console.log("--- 监听结束 this.isPermission = ",this.isPermission) console.log("--- 监听结束 this.isPermission = ",this.isPermission)
}, },