Commit d569240d authored by 田翔's avatar 田翔

fix: 坐标写死问题

parent 750ec09e
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "4.7.7", "version": "4.7.8",
"description": "4.7.7 批量编辑修改", "description": "4.7.8 坐标写死问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -143,7 +143,7 @@ const Coordinate = (props) => { ...@@ -143,7 +143,7 @@ const Coordinate = (props) => {
useEffect(() => { useEffect(() => {
if (addons) { if (addons) {
addons.setValueByPath(addons.dataPath, '12734143.782374073,3560622.6587929404') addons.setValueByPath(addons.dataPath, presetValue)
} else { } else {
onChange(presetValue) onChange(presetValue)
} }
......
...@@ -116,7 +116,7 @@ const Device = (props) => { ...@@ -116,7 +116,7 @@ const Device = (props) => {
if (presetValue) { if (presetValue) {
geometrystr = presetValue geometrystr = presetValue
} }
addons.setValueByPath(addons.dataPath, '12734114.051643973,3560550.07264259') addons.setValueByPath(addons.dataPath, presetValue)
} else { } else {
onChange(presetValue) onChange(presetValue)
} }
......
...@@ -93,7 +93,7 @@ const DrawArea = (props) => { ...@@ -93,7 +93,7 @@ const DrawArea = (props) => {
useEffect(() => { useEffect(() => {
if (addons) { if (addons) {
addons.setValueByPath(addons.dataPath, "{\"rings\":[[[12734029.232350387,3560655.9516569674],[12734035.439494528,3560554.380207394],[12734178.203809762,3560611.373076321],[12734168.046664804,3560614.758791307]]]}") addons.setValueByPath(addons.dataPath, presetValue)
} else { } else {
onChange(presetValue) onChange(presetValue)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment