更新优化

This commit is contained in:
weipengfei 2023-09-09 10:05:27 +08:00
parent ddc2da006e
commit 173a8edd07
4 changed files with 4 additions and 7 deletions

View File

@ -46,7 +46,7 @@
console.log(e);
}
}
console.log('App Launch')
console.log('App Launch', uni.getSystemInfoSync())
this.$store.dispatch('initConfig');
this.$isResolve()
try {

View File

@ -295,11 +295,8 @@ export default {
},
async onLoad () {
await this.$onLaunched;
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO"))?.is_captain
this.options.data = bj;
// uni.$on('home_initUserInfo', (data=null)=>{
// this.initUserInfo(data);
// });
//#ifdef APP-PLUS
let that = this;
jpushModule.addNotificationListener(function (result) {

View File

@ -53,7 +53,7 @@ import { destroyAccount } from '@/api/oaUser.js';
},
onLoad() {
let os = uni.getSystemInfoSync();
this.version = 'v' + os.appVersion;
this.version = 'v' + (os?.appWgtVersion||os?.appVersion);
},
methods:{
clickItem(e){

View File

@ -58,7 +58,7 @@ const actions = {
})
const wgt_v = uni.getStorageSync('wgt_version')||'1.0.0';
// 版本更新
if(compareVersions(res.data.version, os.appVersion||wgt_v)==1&&compareVersions(res.data.version, wgt_v)==1){
if(compareVersions(res.data.version, os.appWgtVersion||wgt_v)==1&&compareVersions(res.data.version, wgt_v)==1){
try{
let info = res.data.version_info||{};
let version = {