task#11094,后台跳转H5参数传递

This commit is contained in:
2024-02-21 09:42:55 +08:00
parent 8a938e9071
commit 5565b045f1

View File

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