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:{