修改版本号

cyl/job_im
jscyl13849007907 3 weeks ago
parent 9b79d8fcf2
commit 8cc9a50a91

@ -30,6 +30,18 @@ export default {
pageTitle: getApp().globalData.title,
};
},
created() {
// #ifdef MP-WEIXIN
try {
const accountInfo = uni.getAccountInfoSync();
if (accountInfo.miniProgram && accountInfo.miniProgram.version) {
this.version = accountInfo.miniProgram.version;
}
} catch (e) {
console.error('获取小程序版本信息失败', e);
}
// #endif
},
};
</script>

@ -62,6 +62,18 @@ export default {
isCreator: false,
};
},
created() {
// #ifdef MP-WEIXIN
try {
const accountInfo = uni.getAccountInfoSync();
if (accountInfo.miniProgram && accountInfo.miniProgram.version) {
this.version = accountInfo.miniProgram.version;
}
} catch (e) {
console.error('获取小程序版本信息失败', e);
}
// #endif
},
onLoad() {
let that = this;
this.showInvite = uni.getStorageSync("SHOW_INVITE_ALL") == 1 ? true : false;

Loading…
Cancel
Save