仅内网可见-管理员端 调试

This commit is contained in:
670788339
2025-07-20 17:47:53 +08:00
parent a8bcd3832b
commit 3cfa3ffec3

View File

@@ -560,21 +560,17 @@ export default {
},
watch: {
courseInfo: {
handler(newVal) {
//需要保存
this.requireSaveCourse = true;
},
deep: true
},
'selectedOrg.orgId': {
handler(newVal, oldVal) {
if (newVal !== oldVal) {
console.log("--- watch newVal.orgId = ",newVal.orgId)
// 需要保存
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);
}
},
deep: false, // 因为只是监听 orgId不是整个对象内容变化所以不需要 deep
immediate: false // 如果不需要立即执行,设为 false
deep: true
}
},
mounted() {