From 236299f592461c7d4665d546123a621971eded3b Mon Sep 17 00:00:00 2001 From: taoxu <2622874537@qq.com> Date: Wed, 6 Dec 2023 10:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.interceptor.js | 3 +- pages/Mystudent/student.vue | 234 ++++++++++++++++++---------------- pages/compoents/indexList.vue | 2 +- 3 files changed, 129 insertions(+), 110 deletions(-) diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 82a2f35..5dc3230 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -41,9 +41,10 @@ const install = (Vue, vm) => { // 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的 // 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值 // const token = uni.getStorageSync('token'); - const token = "Bearer aca170b01b4b4c88b3629fde91a3b2b7" + const token = " Bearer a75c44e23b7740c48740c95ae3b7b427" // console.log("我是token", token) config.header.Authorization = token; + // config.header.Tenant-Id=1 // #ifdef H5 config.header.Authorization = 'Bearer '+token; // #endif diff --git a/pages/Mystudent/student.vue b/pages/Mystudent/student.vue index e082b66..92f9981 100644 --- a/pages/Mystudent/student.vue +++ b/pages/Mystudent/student.vue @@ -1,10 +1,10 @@