【类 型】:fix 重新调整全屏 缩放菜单栏 的延时

【原  因】:菜单栏缩放动画需要时间 没有完全展开  刷新地图  地图会缺失
【过  程】:
【影  响】:
This commit is contained in:
tk 2024-07-25 14:40:38 +08:00
parent 45b10f9c37
commit 71a52544ca
2 changed files with 4 additions and 4 deletions

View File

@ -561,7 +561,9 @@ export default {
*/
handleResize () {
if (this.map) {
setTimeout(() => {
this.map.resize()
}, 300)
}
}
},

View File

@ -135,9 +135,7 @@ export default {
isCollapse: {
handler (val) {
if (val) {
setTimeout(() => {
this.$refs.mapbox.handleResize()
}, 500)
}
}
}