task#15348,司机app参数

This commit is contained in:
2024-10-11 16:51:22 +08:00
parent dd440e81df
commit 2ad457c92a
3 changed files with 1 additions and 15 deletions

View File

@ -133,7 +133,6 @@ const routes = [
component:()=>import('@/views/documentView/trainDocment.vue'), component:()=>import('@/views/documentView/trainDocment.vue'),
meta: { meta: {
title:'培训文档', title:'培训文档',
cache:true,
} }
}, },
{ {

View File

@ -74,16 +74,6 @@ export default {
supplierId:'', supplierId:'',
} }
}, },
activated() {
console.log("activatedactivatedactivated")
},
created() {
const urlParams = new URLSearchParams(window.location.search);
this.supplierId = urlParams.get('supplierId');
this.getTrainingList();
console.log("createdcreatedcreated")
},
mounted() { mounted() {
console.log("mountedmounted") console.log("mountedmounted")
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);

View File

@ -78,12 +78,9 @@ export default {
} }
}, },
mounted() { mounted() {
this.getList();
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
this.driverId = urlParams.get('driverId'); this.driverId = urlParams.get('driverId');
}, this.getList();
async activated() {
await this.getList()
}, },
methods:{ methods:{
onRefresh() { onRefresh() {