2021/12/15 11:49

pull/97/head
Caozhenhui 2021-12-15 11:49:46 +08:00
parent 3810b0cf30
commit 747daab4cb
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
//Switch Classes Function
function getAPI(){
// return "http://127.0.0.1:8000/";
//return "http://127.0.0.1:8000/";
// to avoid CORS issue, use Nginx to proxy myems-api to path /api with the same ip and port as myems-web
return window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/api/";
}