fix(modules/web): fix legado remoteURl parse

This commit is contained in:
Xwite
2024-10-09 09:09:58 +08:00
parent 5269ee295b
commit e33bd350ab
3 changed files with 54 additions and 19 deletions
+1 -1
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,
});