Showing
1 changed file
with
2 additions
and
2 deletions
@@ -120,8 +120,8 @@ layui.define(['laytpl', 'layer','common'], function (exports) { | @@ -120,8 +120,8 @@ layui.define(['laytpl', 'layer','common'], function (exports) { | ||
120 | let tokenVal = common.getMjToken(); | 120 | let tokenVal = common.getMjToken(); |
121 | let tokenKey = common.getMjTokenKey(); | 121 | let tokenKey = common.getMjTokenKey(); |
122 | 122 | ||
123 | - if(options.type == 'post'){ | ||
124 | - options.headers[tokenKey] = "BearerMj " + tokenVal; | 123 | + if(options.type == 'post' || options.type == 'POST'){ |
124 | + options.headers['AuthorizationMj'] = "BearerMj " + tokenVal; | ||
125 | } else if (request.tokenName) { | 125 | } else if (request.tokenName) { |
126 | let tokenVal = options.data[request.tokenName]; | 126 | let tokenVal = options.data[request.tokenName]; |
127 | if(!tokenVal || tokenVal == ''){ | 127 | if(!tokenVal || tokenVal == ''){ |
-
Please register or login to post a comment