修改代码
This commit is contained in:
parent
ab86340524
commit
8f2712e3d8
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ export default {
|
||||
try {
|
||||
this.setMap(val);
|
||||
} catch (error) {
|
||||
console.log(`[ERROR] ${error}`);
|
||||
console.log('[ERROR] ', error);
|
||||
this.mapViewLoaded(false);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user