Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UC 的登录设备处和邮件识别的OS、浏览器信息不同 #7083

Open
3 tasks done
Anyexyz opened this issue Nov 26, 2024 · 3 comments
Open
3 tasks done

UC 的登录设备处和邮件识别的OS、浏览器信息不同 #7083

Anyexyz opened this issue Nov 26, 2024 · 3 comments
Labels
priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@Anyexyz
Copy link
Contributor

Anyexyz commented Nov 26, 2024

前置条件

  • 已经在 Issues 列表中搜索了相关问题。
  • 这是和 Halo 相关的特性,如果是非项目本身的问题,建议在 Discussions 提交。
  • 如果是插件和主题特性建议,请在对应的插件和主题仓库提交。

你当前使用的版本

2.20.10 LTS

描述一下此特性

Image
Image

附加信息

No response

@ruibaby
Copy link
Member

ruibaby commented Nov 27, 2024

这是因为后端和前端解析 UserAgent 不同导致的,消息内容完全是后端构建的,设备信息在后端解析,设备列表中的信息是在前端通过 https://www.npmjs.com/package/ua-parser-js 解析的,所以导致两边不一致。

如果要统一,那么只能在后端解析,但这会损失准确性。

@ruibaby ruibaby added the priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. label Nov 27, 2024
@Anyexyz
Copy link
Contributor Author

Anyexyz commented Nov 27, 2024

faisalman/ua-parser-js#769
faisalman/ua-parser-js@fe15f11
上游在 rc 版本中已添加支持

@JohnNiang
Copy link
Member

看上去已经发布在了 [email protected]. 可以考虑升级该依赖后看看是否解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

3 participants