...
|
...
|
@@ -120,8 +120,8 @@ layui.define(['laytpl', 'layer','common'], function (exports) { |
|
|
let tokenVal = common.getMjToken();
|
|
|
let tokenKey = common.getMjTokenKey();
|
|
|
|
|
|
if(options.type == 'post'){
|
|
|
options.headers[tokenKey] = "BearerMj " + tokenVal;
|
|
|
if(options.type == 'post' || options.type == 'POST'){
|
|
|
options.headers['AuthorizationMj'] = "BearerMj " + tokenVal;
|
|
|
} else if (request.tokenName) {
|
|
|
let tokenVal = options.data[request.tokenName];
|
|
|
if(!tokenVal || tokenVal == ''){
|
...
|
...
|
|