diff --git a/src/Obj/Base/PolylineObject/index.js b/src/Obj/Base/PolylineObject/index.js index bdc778e..ff70456 100644 --- a/src/Obj/Base/PolylineObject/index.js +++ b/src/Obj/Base/PolylineObject/index.js @@ -18,6 +18,7 @@ import { setSplitDirection, syncSplitData, setActiveId } from '../../../Global/S import { setActiveViewer, closeRotateAround, closeViewFollow } from '../../../Global/global' class PolylineObject extends Base { + #unitDataLegpObject /** * @constructor * @param sdk @@ -253,6 +254,7 @@ class PolylineObject extends Base { this._elms.lengthUnit.forEach(item => { item.value = v }) + this.#unitDataLegpObject && this.#unitDataLegpObject.legp_searchActive(v) if (this.options.lengthByMeter) { if (this.unitNum > 2) { switch (v) { @@ -1743,6 +1745,7 @@ class PolylineObject extends Base { '.input-select-unit', 1 ) + this.#unitDataLegpObject = unitDataLegpObject if (unitDataLegpObject) { unitDataLegpObject.legp_search(unitData) let unitDataLegpElm = this._DialogObject._element.content