token问题修复5

This commit is contained in:
2023-08-23 13:55:41 +08:00
parent 83ba02b7ab
commit 7758bf639b
2 changed files with 7 additions and 2 deletions

View File

@ -54,9 +54,12 @@ export default {
total:'',
loading:false,
items: [], // 当前页数
token:'',
}
},
mounted() {
const urlParams = new URLSearchParams(window.location.search);
this.token = urlParams.get('token')
this.$toast('window.location'+window.location)
this.getVehicleList();
},
@ -65,6 +68,7 @@ export default {
this.$router.push({
name:'vehicleAdd',
params:{
token:this.token,
id:item.vehicleId
}
})