|
@@ -71,7 +71,6 @@ const getUrlArgObject = function getQueryString(name) {
|
|
|
}
|
|
|
|
|
|
const post = function (url, data) {
|
|
|
- setCookie('');
|
|
|
// if(!token&&window.location.href.indexOf('login')==-1){
|
|
|
// window.location.href = "../login.html"
|
|
|
// }
|
|
@@ -84,8 +83,7 @@ const post = function (url, data) {
|
|
|
beforeSend: function (xmlHttp) {
|
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0");
|
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache");
|
|
|
- //xmlHttp.setCookie("");
|
|
|
- xmlHttp.setRequestHeader("Authorization",'')
|
|
|
+ //xmlHttp.setRequestHeader("Authorization",'')
|
|
|
},
|
|
|
success: function (res) {
|
|
|
resolve({ data: res });
|