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] html_rander tag is displayed normally for the first time, but it cannot be displayed normally when the conversation is again. #2657

Closed
linfengjjj opened this issue Mar 23, 2025 · 4 comments
Assignees

Comments

@linfengjjj
Copy link

Contact Information

蒋林峰

MaxKB Version

v1.10.2-lts

Problem Description

html_rander标签中内容比较复杂时,首次正常显示,再次对话不能正常显示

Steps to Reproduce

1、创建应用设置指定回复,指定回复为html_rander标签,具体的html内容如附件

overseas-projects-showcase.zip

Image
2、访问该应用,可以访问研发环境该应用,首次回答可以完整显示,再次回答就缺少了很多内容。
Image

Image

The expected correct result

No response

Related log output

Additional Information

No response

@shaohuzhang1 shaohuzhang1 changed the title [Bug] html_rander标签首次正常显示,再次对话不能正常显示 [Bug] html_rander tag is displayed normally for the first time, but it cannot be displayed normally when the conversation is again. Mar 23, 2025
@Shenguobin0102
Copy link

感谢反馈,后续版本修复

@Shenguobin0102 Shenguobin0102 added this to the v1.10.3 milestone Mar 24, 2025
@shaohuzhang1
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for the feedback, subsequent version fixes

@Shenguobin0102 Shenguobin0102 removed this from the v1.10.3 milestone Apr 1, 2025
@Shenguobin0102
Copy link

你好,这个问题是你html写的有问题,你的脚本中div id="projects-container" 这个id写死了,所以两次对话用了相同的id,渲染就有问题。我们做了一些修改,请参考附件文件,文件中使用了自定义函数,来生成UUID,避免div的id重复。

修改后的应用.zip

@shaohuzhang1
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, this problem is that there is a problem with your html writing. The div id="projects-container" in your script is written to death, so when the two conversations are used, there is a problem with the rendering. We have made some modifications, please refer to the attachment file. Custom functions are used in the file to generate UUIDs and avoid duplication of div ids.

Modified application.zip

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

No branches or pull requests

4 participants