From f8b2227217099115989e3767d1787c4da3852281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Wed, 21 Apr 2021 18:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=9B=B4=E6=96=B0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9D=A1=E4=BB=B6=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/ucenter/ucenter.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pages/ucenter/ucenter.vue b/pages/ucenter/ucenter.vue index aff95cbb..5886482d 100644 --- a/pages/ucenter/ucenter.vue +++ b/pages/ucenter/ucenter.vue @@ -82,7 +82,8 @@ ] } }, - onLoad() { + onLoad() { + //#ifdef APP-PLUS this.ucenterList[this.ucenterList.length - 1].unshift( { title: '检查更新', @@ -90,16 +91,19 @@ event: 'checkVersion', showBadge: this.appVersion.hasNew } - ) + ) + //#endif }, computed: { ...mapGetters({ userInfo: 'user/info', login: 'user/hasLogin' - }), - appVersion() { - return getApp().appVersion - } + }) + // #ifdef APP-PLUS + ,appVersion() { + return getApp().appVersion + } + // #endif }, methods: { ...mapMutations({ -- GitLab