From 7591fa055cf9ba2503c1a10c53219f694f3d3719 Mon Sep 17 00:00:00 2001 From: caserKing Date: Sat, 3 Aug 2019 18:09:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=87=BA=E5=8E=BB=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E9=9C=80=E8=A6=81=E8=BF=94=E5=9B=9E=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/navbar/navbar.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/navbar/navbar.js b/components/navbar/navbar.js index 620a0aa..48f045a 100644 --- a/components/navbar/navbar.js +++ b/components/navbar/navbar.js @@ -40,5 +40,13 @@ Component({ delta: 1 }) } + }, + attached: function(){ + let pages = getCurrentPages(); + if (pages.length <= 1) { + this.setData({ + back: false + }) + } } })