From 14a52315c4bdcd7d04208f41696ffd3771dd8183 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期二, 04 六月 2024 18:02:17 +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