|
@@ -94,10 +94,11 @@ const post = function (url, data) {
|
|
|
if(!token&&window.location.href.indexOf('login')==-1){
|
|
|
window.location.href = "../login.html"
|
|
|
}
|
|
|
+ let need = window.location.href.indexOf('localhost')==-1
|
|
|
return new Utils((resolve, reject) => {
|
|
|
$.ajax({
|
|
|
method: 'post',
|
|
|
- url: baseUrl+url,
|
|
|
+ url: need?baseUrl:''+url,
|
|
|
async:true,
|
|
|
cache: false,
|
|
|
contentType: false,
|