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

[Bug] 数据库版本,移动/Ipad端话题无法自动重命名,PC正常 #4001

Open
SAnBlog opened this issue Sep 18, 2024 · 2 comments
Open
Labels
🐛 Bug Something isn't working | 缺陷 📱 Mobile Device Issue in mobile view | 移动设备

Comments

@SAnBlog
Copy link

SAnBlog commented Sep 18, 2024

📦 Environment

Docker

📌 Version

v1.17.6

💻 Operating System

Ubuntu

🌐 Browser

Chrome

🐛 Bug Description

已经设置了系统助手为glm-4-flash,PC很快速重命名成功,移动端对话后登录PC端发现话题名都是默认话题

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@SAnBlog SAnBlog added the 🐛 Bug Something isn't working | 缺陷 label Sep 18, 2024
@lobehubbot
Copy link
Member

👀 @SAnBlog

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Sep 18, 2024

在 v1.17.6 版本中,使用 Docker 在 Ubuntu 和 Chrome 上运行时,移动/iPad 端的话题无法自动重命名,而在 PC 上正常工作。这是因为 useIsMobile 钩子用于确定设备是否为移动设备。基于这个条件,重命名的行为可能会有所不同。

const mobile = useIsMobile();

Dropdown 组件(包含自动重命名功能)是基于 mobile 变量有条件地渲染的:

{(showMore || mobile) && !editing && (
  <Dropdown
    arrow={false}
    menu={{
      items: items,
      onClick: ({ domEvent }) => {
        domEvent.stopPropagation();
      },
    }}
    trigger={['click']}
  >
    <ActionIcon
      className="topic-more"
      icon={MoreVertical}
      onClick={(e) => {
        e.stopPropagation();
      }}
      size={'small'}
    />
  </Dropdown>
)}

这种条件渲染可能导致在移动/iPad 端未触发自动重命名功能[1]

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the 📱 Mobile Device Issue in mobile view | 移动设备 label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 📱 Mobile Device Issue in mobile view | 移动设备
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants