fix : 修复socket地址

This commit is contained in:
2024-10-08 23:18:38 +08:00
parent 88b1052f14
commit 4c86af02dc

View File

@@ -48,7 +48,7 @@ const scrollToBottom = (scrollbarRef) => {
const setWsUrl = (url) => {
return (window.location.protocol === 'http:' ? "ws://" : "wss://") + window.location.host + import.meta.env.VITE_BASE_WSURL + url;
return (window.location.protocol === 'http:' ? "ws://" : "wss://") + window.location.host + import.meta.env.VITE_BASE_URL + url;
}
const handleLogout = () => {
authStore.userLogout()