From 45be153eaef9e1c1a3fe21515e9cbd785fba8e1f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 22 四月 2025 17:38:35 +0800 Subject: [PATCH] 线索任务 --- custom-tab-bar/index.js | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index 9991a7a..a6ff3b7 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -7,10 +7,16 @@ list: TabMenu, }, attached() { - const menu = TabMenu.map(v => { - v.visible = app.globalData.userInfo.usertypeid <= v.level; - return v; + const menu = [] + TabMenu.forEach(v => { + if (app.globalData.userInfo.usertypeid <= v.level) { + menu.push(v) + } }); + // TabMenu.map(v => { + // v.visible = app.globalData.userInfo.usertypeid <= v.level; + // return v; + // }); this.setData({ list: menu }); }, methods: { -- Gitblit v1.9.3