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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user