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