openimsdk / open-im-uniapp-demo

IM
https://openim.io
GNU General Public License v3.0
136 stars 99 forks source link

Bug: h5登录成功后刷新一下又跳转到登录页面 #56

Closed delaiwen666 closed 2 months ago

delaiwen666 commented 5 months ago

What happened?

h5登录成功后刷新一下又跳转到登录页面,需要判断本地存在token就免登陆进去会话页面

What did you expect to happen?

h5登录成功后刷新一下又跳转到登录页面,需要判断本地存在token就免登陆进去会话页面

How can we reproduce it (as minimally and precisely as possible)?

h5登录成功后刷新一下又跳转到登录页面,需要判断本地存在token就免登陆进去会话页面

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

lgz5689 commented 5 months ago

https://github.com/openimsdk/open-im-uniapp-demo/commit/a29e8f10ec387f5ef691b97591e463cd1fb2a96f

lgz5689 commented 5 months ago

a29e8f1

因为 login 和 tryLogin 的获取的平台号不一致 导致的刷新就退出登录状态 h5和小程序 使用不同的平台号