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

This commit is contained in:
whyour committed 2023-09-29 16:07:41 +08:00
1 parent d3023d31e3
commit 2a41f64d1b
7 files changed
+25 -15

No files matched your search

+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,
)}`,
);