代码调整

This commit is contained in:
joylink_cuiweidong 2020-10-26 11:08:16 +08:00
parent 45190c3b6f
commit b1c2d74d29

View File

@ -199,15 +199,15 @@ export default {
this.menu = MenuContextHandler.covert(this.menuNormal);
//
if (this.operatemode === OperateMode.FAULT) {
if (!this.$store.state.scriptRecord.bgSet) {
// if (!this.$store.state.scriptRecord.bgSet) {
const menuHook = [{
label: '道岔钩锁',
handler: this.hookLock
}];
this.menu = [...this.menuForce, ...menuHook];
} else {
this.menu = this.menuForce;
}
// } else {
// this.menu = this.menuForce;
// }
}
},
doShow(point) {