fix
This commit is contained in:
parent
74b5ae75c1
commit
785a43ad8d
@ -19,16 +19,10 @@ const request = new Request({
|
|||||||
: "application/json";
|
: "application/json";
|
||||||
|
|
||||||
const token =
|
const token =
|
||||||
uni.getStorageSync("token") ||
|
plus?.webview.getWebviewById("wv").tokenScan ||
|
||||||
window?.plus?.storage.getItemAsync("token") ||
|
|
||||||
window?.plus?.webview.getWebviewById("wv").tokenScan ||
|
|
||||||
uni.getStorageSync("store-token") ||
|
uni.getStorageSync("store-token") ||
|
||||||
"";
|
"";
|
||||||
console.log(
|
console.log("tokenServer", token);
|
||||||
"tokenServer",
|
|
||||||
|
|
||||||
uni.getStorageSync("token")
|
|
||||||
);
|
|
||||||
if (config.isFormData) {
|
if (config.isFormData) {
|
||||||
config.headers["Content-Type"] = "multipart/form-data";
|
config.headers["Content-Type"] = "multipart/form-data";
|
||||||
config.headers["Authorization"] = token;
|
config.headers["Authorization"] = token;
|
||||||
|
Loading…
Reference in New Issue
Block a user