Skip to content

Commit 4bc5fc5

Browse files
committed
fix: appbar 在首页漏出
1 parent 8f233e8 commit 4bc5fc5

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

miniprogram/page/component/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
Page({
22
onShow() {
3+
// 仅在 app-bar demo 页面展示
4+
if (typeof this.getAppBar === 'function' ) {
5+
const appBarComp = this.getAppBar()
6+
appBarComp.setData({
7+
showAppbar: false
8+
})
9+
}
10+
311
wx.reportAnalytics('enter_home_programmatically', {})
412

513
// http://tapd.oa.com/miniprogram_experiment/prong/stories/view/1020425689866413543

project.private.config.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
"condition": {
1212
"miniprogram": {
1313
"list": [
14+
{
15+
"name": "packageSkylineExamples/examples/app-bar/pages/index/index",
16+
"pathName": "packageSkylineExamples/examples/app-bar/pages/index/index",
17+
"query": "",
18+
"launchMode": "default",
19+
"scene": null
20+
},
1421
{
1522
"name": "photo-idcard-detect",
1623
"pathName": "packageAPI/pages/ar/photo-idcard-detect/photo-idcard-detect",
@@ -128,13 +135,6 @@
128135
"query": "",
129136
"launchMode": "default",
130137
"scene": null
131-
},
132-
{
133-
"name": "",
134-
"pathName": "packageSkylineExamples/examples/refresher-two-level/index/index",
135-
"query": "",
136-
"launchMode": "default",
137-
"scene": null
138138
}
139139
]
140140
}

0 commit comments

Comments
 (0)