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

优化聊天记录发言方是否是当前账号的判断逻辑 #79

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

atorber
Copy link
Contributor

@atorber atorber commented Apr 17, 2024

  • 渲染聊天记录列表时判断条件去除 > 0判断,兼容后端uid为非数字的情况
  • .env默认使用本地服务地址

@atorber
Copy link
Contributor Author

atorber commented Apr 18, 2024

  • if (data.user_id > 0) {
  • if (data.user_id) {
    data.float = data.user_id == uid ? 'right' : 'left'
    }

兼容后端返回user_id为非数字类型

@atorber atorber changed the title 优化当前账号发言判断 优化聊天记录发言方是否是当前账号的判断逻辑 Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant