提交 f8b22272 编写于 作者: 芊里

检查更新添加条件编译

上级 588e9056
......@@ -83,6 +83,7 @@
}
},
onLoad() {
//#ifdef APP-PLUS
this.ucenterList[this.ucenterList.length - 1].unshift(
{
title: '检查更新',
......@@ -91,15 +92,18 @@
showBadge: this.appVersion.hasNew
}
)
//#endif
},
computed: {
...mapGetters({
userInfo: 'user/info',
login: 'user/hasLogin'
}),
appVersion() {
})
// #ifdef APP-PLUS
,appVersion() {
return getApp().appVersion
}
// #endif
},
methods: {
...mapMutations({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册