代码调整

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); this.menu = MenuContextHandler.covert(this.menuNormal);
// //
if (this.operatemode === OperateMode.FAULT) { if (this.operatemode === OperateMode.FAULT) {
if (!this.$store.state.scriptRecord.bgSet) { // if (!this.$store.state.scriptRecord.bgSet) {
const menuHook = [{ const menuHook = [{
label: '道岔钩锁', label: '道岔钩锁',
handler: this.hookLock handler: this.hookLock
}]; }];
this.menu = [...this.menuForce, ...menuHook]; this.menu = [...this.menuForce, ...menuHook];
} else { // } else {
this.menu = this.menuForce; // this.menu = this.menuForce;
} // }
} }
}, },
doShow(point) { doShow(point) {