项目结构是微信小程序webview载入h5,有个功能是localstroge缓存登录证书
经查找资料是内存不足、进程被杀、微信主动杀掉等原因被干掉以后,跟浏览器相关LocalStorage被清掉了
参照下列链接
https://developers.weixin.qq.com/community/develop/doc/00020eeb25c0f879fb88a6adb56400
https://developers.weixin.qq.com/community/develop/article/doc/0002ae4208cfa04ccc4dcaad456413
https://developers.weixin.qq.com/community/develop/doc/0008287e000e502052380c19a56c00
https://developers.weixin.qq.com/community/develop/doc/000a8286a2447841ed00a8f1966000
修改方法是h5的登录证书传给小程序,在每次载入h5时候,在url上拼接上证书信息