update set ip

This commit is contained in:
Cjsah committed 2024-06-16 10:27:43 +08:00
1 parent c9e8972b8b
commit b5c509f4ef
7 files changed
+91 -25

No files matched your search

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