token问题修复2
This commit is contained in:
@ -150,20 +150,16 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const token = urlParams.get('token');
|
||||
this.$toast("车辆编辑打印token",token)
|
||||
this.id=this.$route.query?.id || ''
|
||||
// const urlParams = new URLSearchParams(window.location.search);
|
||||
// const token = urlParams.get('token');
|
||||
// this.$toast("车辆编辑打印token",token)
|
||||
this.id=this.$route.params?.id || ''
|
||||
this.$toast('id:', this.id)
|
||||
const selectElement = document.getElementById('mySelect');
|
||||
selectElement.addEventListener('change', function() {
|
||||
this.selectedOption=selectElement.value;
|
||||
// console.log(this.selectedOption,"11")
|
||||
});
|
||||
await this.getTypeList();
|
||||
// console.log(this.selectedOption,"22")
|
||||
this.id=this.$route.query?.id || ''
|
||||
console.log("this.$route.query",this.id);
|
||||
await this.vehicleInfo()
|
||||
},
|
||||
methods:{
|
||||
@ -179,7 +175,6 @@ export default {
|
||||
})
|
||||
if(res.code === 200){
|
||||
let result=res.data;
|
||||
console.log("获取信息",res)
|
||||
this.id=result.vehicleId
|
||||
this.carNum=result.plateNumber
|
||||
this.isJoin=result.hasPolymerization.code
|
||||
|
Reference in New Issue
Block a user