修复 QlBaseUrl 末尾不加斜杠无法访问

This commit is contained in:
whyour
2023-09-29 16:07:41 +08:00
parent d3023d31e3
commit 2a41f64d1b
7 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ export default function () {
useEffect(() => {
if (!user || !user.username) return;
const ws = WebSocketManager.getInstance(
`${window.location.origin}/api/ws?token=${localStorage.getItem(
`${window.location.origin}${window.__ENV__QlBaseUrl || '/'}api/ws?token=${localStorage.getItem(
config.authKey,
)}`,
);