From 541807408143da6513c99f27801316567397bbd8 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 23 Aug 2023 11:33:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E6=8A=A5=E5=A4=87=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=8A=A0=E9=98=B2=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 +++++ src/utils/http.js | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index e3c7cefc..9bfc3092 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,6 +10,11 @@ diff --git a/src/utils/http.js b/src/utils/http.js index da490776..e1b32192 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -16,8 +16,6 @@ service.interceptors.request.use( config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded' const urlParams = new URLSearchParams(window.location.search); const token = urlParams.get('token'); - alert(token) - this.$toast(token) // let token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzemwiLCJhdWQiOlsic3VwcGxpZXItYXBwIl0sIm5iZiI6MTY5MjY4MDk1MywidXNlcl9pbmZvIjp7InVzZXJJZCI6NTQ1ODUsInBob25lIjoiMTc2MzAwMzU2NTgiLCJuYW1lIjoi5bCP5a6LIiwic3VwcGxpZXJOYW1lIjoi5LiK5rW35a6J55WFQSIsInN1cHBsaWVySWQiOjExMjgsInN1cHBsaWVyVHlwZSI6MSwidXNlcm5hbWUiOiJzemwiLCJ1c2VyVHlwZSI6IkFQUCIsImF1dGhvcml0aWVzIjpbXX0sInNjb3BlIjpbImFsbCJdLCJpc3MiOiJodHRwczovL3Npbm9hc3Npc3QuY29tIiwiZXhwIjoxNjkyNzY3MzUzLCJpYXQiOjE2OTI2ODA5NTN9.GClSyBkWX_LedBuO2h6xoBHyL3xsgFeGp_zirimAuTk' config.headers['Authorization'] = `${token}`; return config