feat: add mj image list component for mobile page. fixed bug for html tag escape

This commit is contained in:
RockYang
2024-02-15 11:39:04 +08:00
parent f6826fcefc
commit 68cda968a1
13 changed files with 479 additions and 21 deletions

View File

@@ -97,7 +97,7 @@ func (h *ChatHandler) ChatHandle(c *gin.Context) {
// use old chat data override the chat model and role ID
var chat model.ChatItem
res = h.db.Where("chat_id=?", chatId).First(&chat)
res = h.db.Where("chat_id = ?", chatId).First(&chat)
if res.Error == nil {
chatModel.Id = chat.ModelId
roleId = int(chat.RoleId)