mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-05 16:53:46 +08:00
fix: fixed bug image preview im mobile chat session page
This commit is contained in:
@@ -131,6 +131,7 @@ func (h *ChatHandler) ChatHandle(c *gin.Context) {
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
h.Init()
|
||||
|
||||
// 保存会话连接
|
||||
h.App.ChatClients.Put(sessionId, client)
|
||||
|
||||
@@ -393,9 +393,6 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}),
|
||||
fx.Invoke(func(h *chatimpl.ChatHandler) {
|
||||
h.Init()
|
||||
}),
|
||||
// 注册生命周期回调函数
|
||||
fx.Invoke(func(lifecycle fx.Lifecycle, lc *AppLifecycle) {
|
||||
lifecycle.Append(fx.Hook{
|
||||
|
||||
Reference in New Issue
Block a user