[Bug] html_rander tag is displayed normally for the first time, but it cannot be displayed normally when the conversation is again.
Contact Information
蒋林峰
MaxKB Version
v1.10.2-lts
Problem Description
html_rander标签中内容比较复杂时,首次正常显示,再次对话不能正常显示
Steps to Reproduce
1、创建应用设置指定回复,指定回复为html_rander标签,具体的html内容如附件
overseas-projects-showcase.zip
2、访问该应用,可以访问研发环境该应用,首次回答可以完整显示,再次回答就缺少了很多内容。
The expected correct result
No response
Related log output
Additional Information
No response
感谢反馈,后续版本修复
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Thanks for the feedback, subsequent version fixes
你好,这个问题是你html写的有问题,你的脚本中div id="projects-container" 这个id写死了,所以两次对话用了相同的id,渲染就有问题。我们做了一些修改,请参考附件文件,文件中使用了自定义函数,来生成UUID,避免div的id重复。
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.