Skip to content

fix: 修改语音组件中判断isPc的逻辑 #4854

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

Merged
merged 3 commits into from
May 22, 2025

Conversation

oppo12312312
Copy link
Contributor

@oppo12312312 oppo12312312 commented May 21, 2025

修改上次的合并 #4848

解决的问题:#4608

解决方案:语音组件判断是pc还是Mobile 使用新的逻辑

新的逻辑:通过 navigator.userAgent+屏幕宽度+是否能触摸,综合判断是否是移动端

Copy link
Contributor

gru-agent bot commented May 21, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 50a307f 🚫 Skipped No files need to be tested {"packages/web/common/system/utils.ts":"File path does not match include patterns.","projects/app/src/components/core/chat/ChatContainer/ChatBox/Input/VoiceInput.tsx":"File path does not match include patterns."}

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link

cla-assistant bot commented May 21, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

cla-assistant bot commented May 21, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


钟帅 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

Preview mcp_server Image: ghcr.io/labring/fastgpt-pr:fatsgpt_mcp_server_50a307f9e5b8af203f569319101e6cbf80066560

Copy link

Preview sandbox Image: ghcr.io/labring/fastgpt-pr:fatsgpt_sandbox_50a307f9e5b8af203f569319101e6cbf80066560

Copy link

Preview fastgpt Image: ghcr.io/labring/fastgpt-pr:fatsgpt_50a307f9e5b8af203f569319101e6cbf80066560

Copy link

Preview mcp_server Image: ghcr.io/labring/fastgpt-pr:fatsgpt_mcp_server_e985dcfb2c44523f08ab51ceb6de8bf469284402

Copy link

Preview sandbox Image: ghcr.io/labring/fastgpt-pr:fatsgpt_sandbox_e985dcfb2c44523f08ab51ceb6de8bf469284402

Copy link

Preview fastgpt Image: ghcr.io/labring/fastgpt-pr:fatsgpt_e985dcfb2c44523f08ab51ceb6de8bf469284402

@oppo12312312
Copy link
Contributor Author

oppo12312312 commented May 22, 2025

为了通过cla协议, 修改了下提交的邮箱,代码没有改,麻烦合并下

@c121914yu c121914yu merged commit 50481f4 into labring:main May 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants