task#10677,tab切的索引bug修复
This commit is contained in:
@ -65,11 +65,14 @@ export default {
|
||||
},
|
||||
},
|
||||
created() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
this.id = this.$route.params.id || urlParams.get('id') || this.$route.params.batchCode;
|
||||
|
||||
},
|
||||
async mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
this.id = this.$route.params.id || urlParams.get('id') || this.$route.params.batchCode;
|
||||
// console.log(" this.id", this.id)
|
||||
this.activeIndex=this.$route.params?.activeIndex || 0
|
||||
// console.log(" this.activeIndex", this.activeIndex)
|
||||
await this.batchOrderCount();
|
||||
await this.getList()
|
||||
},
|
||||
|
Reference in New Issue
Block a user