From 5842b529d26cd556c1d5c3642fa00c8555694652 Mon Sep 17 00:00:00 2001 From: wei_yunxiao <277130180@qq.com> Date: Mon, 21 Oct 2024 11:23:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/chat/ChatMessage.vue | 2 +- godo/libs/chatip.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/chat/ChatMessage.vue b/frontend/src/components/chat/ChatMessage.vue index de2d0d6..12db80e 100644 --- a/frontend/src/components/chat/ChatMessage.vue +++ b/frontend/src/components/chat/ChatMessage.vue @@ -67,7 +67,7 @@ const store = useChatStore()
-
+
{{ item.label }}
diff --git a/godo/libs/chatip.go b/godo/libs/chatip.go index 2a26486..f59712f 100644 --- a/godo/libs/chatip.go +++ b/godo/libs/chatip.go @@ -55,7 +55,11 @@ func GetChatIpSetting() UserChatIpSetting { if !ok { return GetDefaultChatIpSetting() } - return ips.(UserChatIpSetting) + + if ips, ok = ips.(UserChatIpSetting); !ok { + return GetDefaultChatIpSetting() + } + return UserChatIpSetting{} } // GenerateIPs 生成 IP 地址列表