From 1fb498c5d63850cb63163ca295954f86459e4612 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期四, 27 六月 2024 15:26:31 +0800
Subject: [PATCH] feat(支付):
---
common/http.interceptor.js | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index f12595f..77fa8f2 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -43,9 +43,7 @@
// 寮曠敤token
const TOKEN = uni.getStorageSync(ACCESSTOKEN);
if (TOKEN) {
- x.header[ACCESSTOKEN] = TOKEN;
- } else {
- delete x.header[ACCESSTOKEN]
+ x.header[ACCESSTOKEN] = 'Bearer ' + TOKEN;
}
x.header['CLIENT-TYPE'] = appType()
return x;
@@ -78,4 +76,4 @@
vm.$u.toast("璇锋眰寮傚父锛�"); //閿欒鎻愮ず淇℃伅
return Promise.reject(response)
})
-}
+}
\ No newline at end of file
--
Gitblit v1.9.1