From 989affd5ea3141d0977d2b50d3f76b7a3a6d6c80 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 23 Aug 2023 14:11:00 +0800 Subject: [PATCH] =?UTF-8?q?token=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.js | 2 -- src/views/index/vehicleManage.vue | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utils/http.js b/src/utils/http.js index b5ed7040..fcc92d63 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -13,8 +13,6 @@ const service = axios.create({ const urlParams = new URLSearchParams(window.location.search); let token = urlParams.get('token') ; localStorage.setItem('token', token); -const token1 = localStorage.getItem('token'); -this.$toast("token" + token1) service.interceptors.request.use( config => { config.data = config.contentType ? config.data : qs.stringify(config.data) diff --git a/src/views/index/vehicleManage.vue b/src/views/index/vehicleManage.vue index dda0e444..d85586af 100644 --- a/src/views/index/vehicleManage.vue +++ b/src/views/index/vehicleManage.vue @@ -58,9 +58,7 @@ export default { } }, mounted() { - // const urlParams = new URLSearchParams(window.location.search); - // this.token = urlParams.get('token') - this.$toast('window.location'+window.location) + // this.$toast('window.location'+window.location) this.getVehicleList(); }, methods:{