1rosehip / 1rosehip/jplist

reload jplist in SPA

未关闭
#253 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
435
派生
168
PR 合并指标
30 天内没有已合并 PR

描述

I am using jplist in a vue.js spa with store locator bundle.

it works like a charm when loading in the page directly but if user navigate to another page/route then come back again, the jplist instance still work there, google maps gone. I checked the 'hide /show map example', it uses google.map.event.trigger(instance, 'resize') to load the map back, but since spa destory DOMs while navigating, that map instance isn't exist when I came back to the store locator page.

So, is there any approach to let me reinitialize the map or the jplist it self each time entering the route ?

贡献指南

这个仓库没有索引到贡献指南

调研方向

该 issue 涉及 Vue.js SPA 中的 jPList,其中 Google 地图在路由导航后消失。检查 Vue 组件中的 jPList 初始化代码和生命周期钩子。检查商店定位器包如何与 jPList 和 Google 地图集成。查找 DOM 销毁和重新初始化事件,以便在进入路由时重新创建地图实例。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, jquery
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。