feat: vue-mobile => 优化聊天记录拍版样式

This commit is contained in:
RockYang
2023-06-25 18:21:38 +08:00
parent 811f12135a
commit b9e9eae93f
8 changed files with 284 additions and 178 deletions

View File

@@ -97,7 +97,7 @@ func (h *ManagerHandler) Migrate(c *gin.Context) {
}
break
case "role":
// TestRole 修改角色图片,改成绝对路径
// 修改角色图片,改成绝对路径
var roles []model.ChatRole
h.db.Find(&roles)
for _, r := range roles {
@@ -105,6 +105,15 @@ func (h *ManagerHandler) Migrate(c *gin.Context) {
h.db.Updates(&r)
}
break
case "history":
// 修改角色图片,改成绝对路径
var message []model.HistoryMessage
h.db.Find(&message)
for _, r := range message {
r.Icon = "/" + r.Icon
h.db.Updates(&r)
}
break
}
resp.SUCCESS(c, "SUCCESS")