From e9f7a5edcfa49f4e37250c2e2b957d40e8c369c2 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 18 Nov 2025 13:49:33 +0800
Subject: [PATCH] feat:面积保留两位小数
---
src/components/CreateQRcode/CreateQRcode.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/components/CreateQRcode/CreateQRcode.vue b/src/components/CreateQRcode/CreateQRcode.vue
index fc18491..7c1d31e 100644
--- a/src/components/CreateQRcode/CreateQRcode.vue
+++ b/src/components/CreateQRcode/CreateQRcode.vue
@@ -19,10 +19,13 @@
}
// 生成新二维码
qrCodeInstance = new QRCode(myQrCode.value, {
- width: 92,
- height: 91,
- text: `https://uri.amap.com/marker?position=${transformed}&name=%E4%BA%8B%E4%BB%B6%E7%82%B9`,
+ width: 130,
+ height: 130,
+ text: `https://uri.amap.com/marker?position=${transformed}&name=%E4%BA%8B%E4%BB%B6%E7%82%B9&from='ztzf'`,
})
+ if (myQrCode.value.hasAttribute('title')) {
+ myQrCode.value.removeAttribute('title')
+ }
}
watch(
() => props.latAndLon,
--
Gitblit v1.9.3