diff --git a/src/App.vue b/src/App.vue index d28bbf4..169921d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,9 +48,9 @@ export default { isChinese () { return this.currentLang === ZH }, - // 是否显示导航 + // 是否显示导航,打包后默认不显示 hasNavBar () { - return this.$route.meta.hasNavBar + return process.env.NODE_ENV === 'production' ? false : this.$route.meta.hasNavBar }, // 是否显示返回 hasBack () {