From d21a55665375b0eb182da167780aac32ea2782b0 Mon Sep 17 00:00:00 2001 From: taohebin Date: Thu, 27 Jun 2024 12:18:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0uni.setAppBadgeNumber?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.uvue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/index/index.uvue b/pages/index/index.uvue index 04c03b0..d3bd9fc 100644 --- a/pages/index/index.uvue +++ b/pages/index/index.uvue @@ -2,7 +2,9 @@ - + + + @@ -75,7 +77,13 @@ console.log(e); } }) - }, + }, + handleSetBadge(){ + uni.setAppBadgeNumber(8) + }, + handleCleanBadge(){ + uni.setAppBadgeNumber(0) + } } } -- GitLab