MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

[Bug] html_rander tag is displayed normally for the first time, but it cannot be displayed normally when the conversation is again.

Open linfengjjj opened this issue 9 months ago • 2 comments

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

linfengjjj avatar Mar 23 '25 13:03 linfengjjj

感谢反馈,后续版本修复

Shenguobin0102 avatar Mar 24 '25 01:03 Shenguobin0102

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


Thanks for the feedback, subsequent version fixes

shaohuzhang1 avatar Mar 24 '25 01:03 shaohuzhang1

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

修改后的应用.zip

Shenguobin0102 avatar Apr 01 '25 10:04 Shenguobin0102

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

shaohuzhang1 avatar Apr 01 '25 10:04 shaohuzhang1