token问题修复6

This commit is contained in:
2023-08-23 14:11:00 +08:00
parent f2740ea750
commit 989affd5ea
2 changed files with 1 additions and 5 deletions

View File

@ -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)

View File

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