fix(modules/web): fix legado remoteURl parse

This commit is contained in:
Xwite
2024-10-09 07:51:20 +08:00
parent fbf6b72a07
commit 87fb73fdd7
3 changed files with 54 additions and 19 deletions

View File

@@ -5,7 +5,7 @@ const SECOND = 1000;
const ajax = axios.create({
baseURL:
import.meta.env.VITE_API ||
localStorage.getItem("remoteIp") ||
localStorage.getItem("remoteOrigin") ||
location.origin,
timeout: 120 * SECOND,
});