fix(modules/web): Bug fix; Support more widely legado remoteUrl

http://1.2.4.5:5000/<path>

http://www.example.com:5000/<path>
This commit is contained in:
Xwite
2024-10-09 21:44:24 +08:00
parent a92bb078b2
commit 7e78ca2f0a
6 changed files with 110 additions and 79 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ const SECOND = 1000;
const ajax = axios.create({
baseURL:
import.meta.env.VITE_API ||
localStorage.getItem("remoteOrigin") ||
localStorage.getItem("remoteUrl") ||
location.origin,
timeout: 120 * SECOND,
});