From 8dc692796ce7ac00955fb3d2ffc1750c5c093885 Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 20 Mar 2025 20:04:48 +0800 Subject: [PATCH] 1 --- src/pages/tabbar/my.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue index ee79777..b84f684 100644 --- a/src/pages/tabbar/my.vue +++ b/src/pages/tabbar/my.vue @@ -180,14 +180,15 @@ const doScanCode = async () => { try { const res: any = await (window as any).dd.scan({ type: "all", sourceType: ["camera"], scanType: ["cameraScan"] }) console.log(res) - // usePayStore().setPayData(res.text) - usePayStore().setPayData(res) + usePayStore().setPayData(res.text) router.jump("/pages/pay/scanPay") } catch (error: any) { - uni.showToast({ - title: error, - icon: "none", - }) + if (error) { + uni.showToast({ + title: error, + icon: "none", + }) + } } }