token问题修复2

This commit is contained in:
2023-08-23 13:34:14 +08:00
parent c440ffd054
commit 30af198649

View File

@ -150,11 +150,11 @@ export default {
} }
}, },
async mounted() { async mounted() {
// const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
// const token = urlParams.get('token'); const token = urlParams.get('token');
// this.$toast("车辆编辑打印token",token) this.$toast("车辆编辑打印token" + token)
this.id=this.$route.params?.id || '' this.id=this.$route.params?.id || ''
this.$toast('id:', this.id) this.$toast('id:' + this.id)
const selectElement = document.getElementById('mySelect'); const selectElement = document.getElementById('mySelect');
selectElement.addEventListener('change', function() { selectElement.addEventListener('change', function() {
this.selectedOption=selectElement.value; this.selectedOption=selectElement.value;
@ -182,7 +182,7 @@ export default {
this.serviceIds=result.serviceIds this.serviceIds=result.serviceIds
// console.log("num",this.carNum,this.isJoin) // console.log("num",this.carNum,this.isJoin)
} }
this.$toast('codeid:' + this.id)
}, },
change(e) { change(e) {
// console.log("拖车服务",e) // console.log("拖车服务",e)