修改代码

This commit is contained in:
ival 2019-07-26 17:35:58 +08:00
parent ab86340524
commit 8f2712e3d8
2 changed files with 3 additions and 4 deletions

View File

@ -6,13 +6,12 @@ import Rect from 'zrender/src/graphic/shape/Rect';
/** 列车 */
export default class Train extends Group {
constructor({ _code, _type, zlevel, model, state }, style) {
constructor({ _code, _type, zlevel, model }, style) {
super();
this._code = _code;
this._type = _type;
this.zlevel = zlevel;
this.model = model;
this.state = state;
this.style = style;
this.z = 40;
this.section = null;
@ -135,7 +134,7 @@ export default class Train extends Group {
}
});
if (this.style.Train.defaultServerNoColor && !flag) {
this.trainB.setTextTrainServerColor(this.style.this.style.Train.defaultServerNoColor);
this.trainB.setTextTrainServerColor(this.style.Train.defaultServerNoColor);
}
}
}

View File

@ -73,7 +73,7 @@ export default {
try {
this.setMap(val);
} catch (error) {
console.log(`[ERROR] ${error}`);
console.log('[ERROR] ', error);
this.mapViewLoaded(false);
}
},