token问题修复6
This commit is contained in:
@ -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)
|
||||
|
@ -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:{
|
||||
|
Reference in New Issue
Block a user