From 9632f5c0654533f5e61fc35dcec6607fa3721905 Mon Sep 17 00:00:00 2001 From: zoujing Date: Mon, 1 Dec 2025 14:18:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A6=81=E6=AD=A2=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/share.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/share.js b/src/utils/share.js index 620e316..f6a1cbf 100644 --- a/src/utils/share.js +++ b/src/utils/share.js @@ -3,7 +3,9 @@ export default { app.mixin({ onLoad() { const page = getCurrentPages().pop(); - if (page) { + console.log("Current page:", page); + const allowShare = page && page.route && page.route !== "pages/login/index"; + if (allowShare) { uni.showShareMenu({ withShareTicket: true, menus: ["shareAppMessage", "shareTimeline"],