From 9c83b1d9bf8bee67db5ea132d796724496924cd2 Mon Sep 17 00:00:00 2001 From: blak-kong <546598185@qq.com> Date: Tue, 5 Mar 2024 10:09:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E5=90=88=E5=B9=B6=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/instrumentClickinUpload/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/instrumentClickinUpload/index.tsx b/src/pages/instrumentClickinUpload/index.tsx index c090427..5e27efb 100644 --- a/src/pages/instrumentClickinUpload/index.tsx +++ b/src/pages/instrumentClickinUpload/index.tsx @@ -87,14 +87,10 @@ export default class InstrumentClickInUpload extends Component { let instrumentDetail = JSON.parse(objStr); this.setState({ instrumentDetail }); } - - const searchParams = new URLSearchParams(window.location.search); - const id = searchParams.get("id"); - setTimeout(() => { this.firstNurseInfo(); this.getLatestClockRecord(); - this.modeInfoList(id); + this.modeInfoList(this.state.instrumentDetail.id); }, 10); }