This commit is contained in:
Aiden 2024-10-22 18:50:34 +08:00
parent 74b5ae75c1
commit 785a43ad8d

View File

@ -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;