|
|
@ -292,7 +292,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
if (!/requestData\.headers/.test(this.scriptBeforeRequest)) { |
|
|
|
if (!/requestData\.headers/.test(this.scriptBeforeRequest)) { |
|
|
|
this.scriptBeforeRequest += `\nif(ApiInfo.auth){\n`; |
|
|
|
this.scriptBeforeRequest += `\nif(ApiInfo.auth){\n`; |
|
|
|
this.scriptBeforeRequest += ` requestData.headers = { Authenticate: 'Bearer ' + localStorage.getItem("token")};\n`; |
|
|
|
this.scriptBeforeRequest += ` requestData.headers = { Authorization: 'Bearer ' + localStorage.getItem("token")};\n`; |
|
|
|
this.scriptBeforeRequest += `}`; |
|
|
|
this.scriptBeforeRequest += `}`; |
|
|
|
} |
|
|
|
} |
|
|
|
if (localStorage.getItem("ScAfter")){ |
|
|
|
if (localStorage.getItem("ScAfter")){ |
|
|
|