token问题修复
This commit is contained in:
@ -10,11 +10,6 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
mounted() {
|
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
|
||||||
const token = urlParams.get('token');
|
|
||||||
this.$toast("打印token",token)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -86,6 +86,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const token = urlParams.get('token');
|
||||||
|
this.$toast("司机编辑打印token",token)
|
||||||
this.id = this.$route.params?.id;
|
this.id = this.$route.params?.id;
|
||||||
this.driverName = this.$route.params?.name;
|
this.driverName = this.$route.params?.name;
|
||||||
this.driverPhone = this.$route.params?.phone;
|
this.driverPhone = this.$route.params?.phone;
|
||||||
@ -137,7 +140,7 @@ export default {
|
|||||||
validatePhoneNumber() {
|
validatePhoneNumber() {
|
||||||
const phoneNumberRegex = /^1[0-9]{10}$/;
|
const phoneNumberRegex = /^1[0-9]{10}$/;
|
||||||
|
|
||||||
if (phoneNumberRegex.test(this.driverPhone)) {
|
if (!phoneNumberRegex.test(this.driverPhone)) {
|
||||||
this.phoneNumberError = true;
|
this.phoneNumberError = true;
|
||||||
this.phoneNumberErrorMessage = '电话号码格式不正确,请输入有效的11位手机号码。';
|
this.phoneNumberErrorMessage = '电话号码格式不正确,请输入有效的11位手机号码。';
|
||||||
} else {
|
} else {
|
||||||
|
@ -66,6 +66,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const token = urlParams.get('token');
|
||||||
|
this.$toast("司机管理打印token",token)
|
||||||
this.getDriverList()
|
this.getDriverList()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
@ -150,6 +150,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const token = urlParams.get('token');
|
||||||
|
this.$toast("车辆编辑打印token",token)
|
||||||
this.id=this.$route.query?.id || ''
|
this.id=this.$route.query?.id || ''
|
||||||
this.$toast('id:', this.id)
|
this.$toast('id:', this.id)
|
||||||
const selectElement = document.getElementById('mySelect');
|
const selectElement = document.getElementById('mySelect');
|
||||||
|
@ -57,6 +57,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const token = urlParams.get('token');
|
||||||
|
this.$toast("车辆管理打印token",token)
|
||||||
this.getVehicleList();
|
this.getVehicleList();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
Reference in New Issue
Block a user