实训消失问题调整2

This commit is contained in:
joylink_fanyuhong 2024-09-14 13:50:40 +08:00
parent 32430607dd
commit f2efa437df
1 changed files with 12 additions and 9 deletions

View File

@ -101,9 +101,6 @@ export default {
},
methods: {
async tipInit(timetamp) {
if (this.timetamp !== timetamp) {
return;
}
if (this.teachMode === ScriptMode.TEACH) {
this.tipShow = true;
const offset = this.$store.state.config.canvasOffset;
@ -123,28 +120,34 @@ export default {
x: position.x + offset.x,
y: position.y + offset.y - distance
};
this.popTipShow();
this.popTipShow(timetamp);
}
} else if (stepInfo.tipPosition && stepInfo.tipPosition.domId) {
const position = await this.getOtherTipPoint(stepInfo.tipPosition);
if (position) {
this.position = position;
this.position.y -= distance;
this.popTipShow();
this.popTipShow(timetamp);
} else {
this.popTipHide();
this.popTipHide(timetamp);
}
} else {
this.popTipHide();
this.popTipHide(timetamp);
}
} else {
this.tipShow = false;
}
},
popTipShow() {
popTipShow(timetamp) {
if (this.timetamp !== timetamp) {
return;
}
this.popShow = true;
},
popTipHide() {
popTipHide(timetamp) {
if (this.timetamp !== timetamp) {
return;
}
this.popShow = false;
},
//