task#11094,后台跳转H5参数bug修复

This commit is contained in:
2024-02-21 10:54:21 +08:00
parent d0850f4621
commit 9113ecbf01

View File

@ -68,10 +68,12 @@ export default {
},
async mounted() {
console.log("gsjjadjkasjdhsjakdhjkashkdjh")
// 获取当前 URL
const urlParams = new URLSearchParams(window.location.search);
console.log("urlParams.get('id')",urlParams.get('id'))
this.id =urlParams.get('id') || this.$route.params.id || this.$route.params.batchCode;
console.log("=========",this.$route)
this.id = this.$route.params.id || this.$route.params.batchCode;
this.activeIndex=this.$route.params?.activeIndex || 0
await this.batchOrderCount();
await this.getList()