在写地接侠小程序的时候就是有考虑过兼容问题的,但是在写的过程中并没有用苹果手机进行调式,一直都是用的自己的安卓手机,一直都是没有问题的,但是毕竟项目需要上线,于是在上线前用苹果手机测试果然出现了预想中的问题。
redux持久化不成功
问题描述:
具体问题就是redux中的数据其实是更改了的,同时能够拿到更改后的数据,但是在本地持久化中,数据一直没有更新,一直是最初的状态,那这样的话,在接口请求的过程中一直都拿不到token因为我是通过本地存储获取到的token,并且每次进入都需重新登录,因为用户的数据并没有保留。

具体解决:
persistReducer的时候设置一下throttle

参考内容:

整个页面会拖动
问题描述:
在苹果手机上整个页面就想一张纸一样,可以随意拨动,但是在安卓手机中是正常的
图片对比:

具体解决:
在app.config.ts文件夹中,在window中添加 disableScroll: true
disableScroll: true
这个设置通常用于控制页面或应用是否禁用滚动功能。当设置为 true
时,意味着禁用了页面或应用的滚动能力,用户无法通过滚动鼠标滚轮或触摸屏幕来滚动页面内容。

上面那个方式是全局的,也可以单独给一个页面设置滚动如下所示
