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