From 5565b045f13c289c5bb96b4b06133975bfa8859c Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 21 Feb 2024 09:42:55 +0800 Subject: [PATCH] =?UTF-8?q?task#11094,=E5=90=8E=E5=8F=B0=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?H5=E5=8F=82=E6=95=B0=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/caseList/caseAuditList.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/caseList/caseAuditList.vue b/src/views/caseList/caseAuditList.vue index a23f795e..655050f3 100644 --- a/src/views/caseList/caseAuditList.vue +++ b/src/views/caseList/caseAuditList.vue @@ -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()