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