提交 79aed1c6 作者: 翁进城

fix: 机库无机机轨迹接管权限判断

上级 6efe12c0
......@@ -226,7 +226,16 @@ export default {
/**
* 显示隐藏航线
*/
onSwitchAirline() {
async onSwitchAirline() {
// 判断是否已接管
let isTakeOver = this.isTakeOver;
if(this.isHangar){
isTakeOver = this.isTakeOverHangar;
}
if (!(await isTakeOver())) {
this.$message.warning("请先接管设备");
return false;
}
if (this.airlineEntity) {
this.airlineEntity.show = !this.airlineEntity.show;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论