diff --git a/components/NavBar/NavBar.vue b/components/NavBar/NavBar.vue index ea5b996..cc6089f 100644 --- a/components/NavBar/NavBar.vue +++ b/components/NavBar/NavBar.vue @@ -103,7 +103,7 @@ enableWidth: 0, enableHeight: 0, fontSize: 0, - navStyle: 'left' + navStyle: 'center' }; }, mounted() { @@ -116,7 +116,7 @@ } } // 赋值样式 - // this.navStyle = getApp().globalData.navInfo.navBar.style + this.navStyle = getApp().globalData.navInfo.navBar.style }, created() { // create阶段能拿取到了props的值,需要使用this.变量名