Commit 56ab35a7 by wanghao

同步代码

parent f77c7f79
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
}, },
"dependencies": { "dependencies": {
"@icon-park/svg": "^1.4.0", "@icon-park/svg": "^1.4.0",
"@marsgis/editor": "^1.1.4", "@marsgis/editor": "^1.1.5",
"antd": "^4.19.3", "antd": "^4.19.3",
"axios": "^0.26.1", "axios": "^0.26.1",
"classnames": "^2.3.1", "classnames": "^2.3.1",
......
...@@ -227,7 +227,7 @@ export class TileLayerState extends Component<any, any> { ...@@ -227,7 +227,7 @@ export class TileLayerState extends Component<any, any> {
}) })
} }
}) })
}, 100) }, 500)
} }
setLayerOptions = (attribute: string, val: number) => { setLayerOptions = (attribute: string, val: number) => {
......
...@@ -66,4 +66,9 @@ function destoryUI() { ...@@ -66,4 +66,9 @@ function destoryUI() {
reactApp = null reactApp = null
} }
marsEditor.render(document.getElementById("root"), getExampleId(), getQueryString("name")) marsEditor.render({
container: document.getElementById("root"),
exampleId: getExampleId(),
exampleKey: getQueryString("key"),
fullName: getQueryString("name")
})
...@@ -14,7 +14,7 @@ const jumpUrl = (item: any) => { ...@@ -14,7 +14,7 @@ const jumpUrl = (item: any) => {
} }
// 处理参数 // 处理参数
url += "?id=" + encodeURI(item.main) url += `?key=${item.id}&id=` + encodeURI(item.main)
if (item.params) { if (item.params) {
url += `&${item.params}&name=${item.fullName}` url += `&${item.params}&name=${item.fullName}`
} }
......
...@@ -67,4 +67,9 @@ function destoryUI() { ...@@ -67,4 +67,9 @@ function destoryUI() {
reactApp = null reactApp = null
} }
marsEditor.render(document.getElementById("root"), getExampleId(), getQueryString("name")) marsEditor.render({
container: document.getElementById("root"),
exampleId: getExampleId(),
exampleKey: getQueryString("key"),
fullName: getQueryString("name")
})
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论