fix : 修复socket地址
This commit is contained in:
@@ -48,7 +48,7 @@ const scrollToBottom = (scrollbarRef) => {
|
|||||||
|
|
||||||
|
|
||||||
const setWsUrl = (url) => {
|
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 = () => {
|
const handleLogout = () => {
|
||||||
authStore.userLogout()
|
authStore.userLogout()
|
||||||
|
|||||||
Reference in New Issue
Block a user