update set ip

This commit is contained in:
Cjsah
2024-06-16 10:27:43 +08:00
parent c9e8972b8b
commit b5c509f4ef
7 changed files with 91 additions and 25 deletions
+5 -1
View File
@@ -2,8 +2,12 @@ import axios from "axios";
const SECOND = 1000;
export const baseUrl = () => {
return localStorage.getItem("remoteIp");
};
const ajax = axios.create({
baseURL: import.meta.env.VITE_API || location.origin,
// baseURL: import.meta.env.VITE_API || location.origin,
timeout: 120 * SECOND,
});