From 80cbd0f3bd4c442b91bcf23bcaa8fa8e1d3fbd9d Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 22 Aug 2024 16:30:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(generate=20menu):=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E7=B1=BB=E5=9E=8B=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabBar/generateMenu.uts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pages/tabBar/generateMenu.uts b/pages/tabBar/generateMenu.uts index 0724a52c..8ee21efb 100644 --- a/pages/tabBar/generateMenu.uts +++ b/pages/tabBar/generateMenu.uts @@ -111,15 +111,6 @@ function hasPageGroup(value ?: string | null) : boolean { // #endif } -function isNumber(value : number | null) : boolean { - // #ifdef APP-ANDROID - return value !== null - // #endif - // #ifndef APP-ANDROID - return typeof value === 'number' - // #endif -} - function camelToDash(camelStr : string) : string { return camelStr.replace(/([A-Z])/g, '-$1').toLowerCase() } @@ -135,7 +126,7 @@ function fillMenuArrayWithEmptyMenuItem(arr: MenuItem[], index: number): void { style: {}, group: '', items: [] as MenuItem[], - }) + } as MenuItem) } } -- GitLab