代码调整

This commit is contained in:
fan 2023-07-11 14:33:54 +08:00
parent 0093b8bae1
commit 4bfa9c78b8
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ export default {
brakeTrain() { brakeTrain() {
sandTableTrainControl(this.$route.query.group, { groupNumber: this.groupNumber, right: this.right, speed: 0 }).then(resp => { sandTableTrainControl(this.$route.query.group, { groupNumber: this.groupNumber, right: this.right, speed: 0 }).then(resp => {
this.speed = 0; this.speed = 0;
}).catch(err => { this.$message.error(err.message); }); }).catch(err => { this.$message.error(err.message); }).finally(() => { this.changeSpeedFlag = false; });
}, },
handleRun() { handleRun() {
const step = { const step = {

View File

@ -150,7 +150,7 @@ export default {
} }
sandTableTrainControl(this.$route.query.group, { groupNumber: this.groupNumber, right: this.right, speed: 0 }).then(resp => { sandTableTrainControl(this.$route.query.group, { groupNumber: this.groupNumber, right: this.right, speed: 0 }).then(resp => {
this.speed = 0; this.speed = 0;
}).catch(err => { this.$message.error(err.message); }); }).catch(err => { this.$message.error(err.message); }).finally(() => { this.changeSpeedFlag = false; });
}, },
handleRun() { handleRun() {
if (!this.groupNumber) { if (!this.groupNumber) {