数据同步完成后,切换选项卡

This commit is contained in:
kerwincui
2022-07-31 13:17:40 +08:00
parent 67f8f66254
commit 90badd1eaf

View File

@@ -358,6 +358,8 @@ export default {
deviceSynchronization() { deviceSynchronization() {
deviceSynchronization(this.form.serialNumber).then(response => { deviceSynchronization(this.form.serialNumber).then(response => {
this.form = response.data; this.form = response.data;
// 选项卡切换
this.activeName = 'runningStatus';
this.oldDeviceStatus = this.form.status; this.oldDeviceStatus = this.form.status;
this.loadMap(); this.loadMap();
}); });