提交 054cd02b 作者: 王定

feat: 优化地图加载

上级 32d599f0
...@@ -359,9 +359,12 @@ async function getEmploymentList() { ...@@ -359,9 +359,12 @@ async function getEmploymentList() {
model.total = total model.total = total
// 数据加载完成后渲染地图标记 // 数据加载完成后渲染地图标记
nextTick(() => { setTimeout(()=>{
renderEmploymentMarkers();
},600)
/* nextTick(() => {
renderEmploymentMarkers() renderEmploymentMarkers()
}) }) */
}) })
}else{ }else{
await LinghuoyonggongAPI.employmentList(model.search).then(async (res) => { await LinghuoyonggongAPI.employmentList(model.search).then(async (res) => {
...@@ -391,9 +394,12 @@ async function getEmploymentList() { ...@@ -391,9 +394,12 @@ async function getEmploymentList() {
model.total = total model.total = total
// 数据加载完成后渲染地图标记 // 数据加载完成后渲染地图标记
nextTick(() => { setTimeout(()=>{
renderEmploymentMarkers();
},600)
/* nextTick(() => {
renderEmploymentMarkers() renderEmploymentMarkers()
}) }) */
}) })
} }
} catch (error) { } catch (error) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论