From c65203ead6b4469037d144ba64c3a3c9df261d7b Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Thu, 20 Feb 2025 14:55:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor(personal-info):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=B5=84=E8=AE=AF=E9=A1=B5=E9=9D=A2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在路由查询参数 qrUid 存在时,才执行 getData() 方法获取数据 - 修复了之前数据无条件加载的问题,提高了页面性能和用户体验 --- app/pages/collectCode/signature/personal-Info/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/pages/collectCode/signature/personal-Info/index.vue b/app/pages/collectCode/signature/personal-Info/index.vue index 1f7fccb..5eb3e58 100644 --- a/app/pages/collectCode/signature/personal-Info/index.vue +++ b/app/pages/collectCode/signature/personal-Info/index.vue @@ -57,7 +57,9 @@ const initData= async ()=>{ if (route.query.qrUid){ qrUid.value=route.query.qrUid } - await getData() + if (number.value===2){ + await getData() + } if (qrData.value.payStatus===4){ router.replace('/collectCode/payment') }