Skip to content

Commit 6c152db

Browse files
committed
update: 调整设置导航栏颜色示例
1 parent 6eada9b commit 6c152db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/API/set-navigation-bar-title/set-navigation-bar-title.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
setBg() {
3535
this.hasSetBg = !this.hasSetBg;
3636
uni.setNavigationBarColor({
37-
frontColor: this.hasSetBg ? "#ffffff" : "#000000",
38-
backgroundColor: this.hasSetBg ? "#007AFF" : "#F8F8F8"
37+
frontColor: this.hasSetBg ? "#000000" : "#ffffff",
38+
backgroundColor: this.hasSetBg ? "#F8F8F8" : "#007AFF"
3939
})
4040
}
4141
}

0 commit comments

Comments
 (0)