token问题修复6
This commit is contained in:
@ -150,9 +150,9 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const token = urlParams.get('token');
|
||||
this.$toast("车辆编辑打印token" + token)
|
||||
// const urlParams = new URLSearchParams(window.location.search);
|
||||
// const token = urlParams.get('token');
|
||||
// this.$toast("车辆编辑打印token" + token)
|
||||
this.id=this.$route.params?.id
|
||||
const selectElement = document.getElementById('mySelect');
|
||||
selectElement.addEventListener('change', function() {
|
||||
|
@ -58,8 +58,8 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
this.token = urlParams.get('token')
|
||||
// const urlParams = new URLSearchParams(window.location.search);
|
||||
// this.token = urlParams.get('token')
|
||||
this.$toast('window.location'+window.location)
|
||||
this.getVehicleList();
|
||||
},
|
||||
@ -68,7 +68,7 @@ export default {
|
||||
this.$router.push({
|
||||
name:'vehicleAdd',
|
||||
params:{
|
||||
token:this.token,
|
||||
// token:this.token,
|
||||
id:item.vehicleId
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user