task#11186,司机app路径获取driverId

This commit is contained in:
2024-02-22 11:33:36 +08:00
parent 1180399739
commit 933a1bd8fa

View File

@ -89,11 +89,11 @@ export default {
},
},
async mounted() {
let token = localStorage.getItem('token');
this.$notify(token);
/* const urlParams = new URLSearchParams(window.location.search);
this.driverId = urlParams.get('driverId');*/
this.driverId = 78948;
/* let token = localStorage.getItem('token');
this.$notify(token);*/
const urlParams = new URLSearchParams(window.location.search);
this.driverId = urlParams.get('driverId');
// this.driverId = 78948;
await this.getMonth();
await this.getList()
},