【类 型】:fix 重新调整全屏 缩放菜单栏 的延时
【原 因】:菜单栏缩放动画需要时间 没有完全展开 刷新地图 地图会缺失 【过 程】: 【影 响】:
This commit is contained in:
parent
45b10f9c37
commit
71a52544ca
@ -561,7 +561,9 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleResize () {
|
handleResize () {
|
||||||
if (this.map) {
|
if (this.map) {
|
||||||
this.map.resize()
|
setTimeout(() => {
|
||||||
|
this.map.resize()
|
||||||
|
}, 300)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -135,9 +135,7 @@ export default {
|
|||||||
isCollapse: {
|
isCollapse: {
|
||||||
handler (val) {
|
handler (val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
setTimeout(() => {
|
this.$refs.mapbox.handleResize()
|
||||||
this.$refs.mapbox.handleResize()
|
|
||||||
}, 500)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user