更新优化
This commit is contained in:
parent
ddc2da006e
commit
173a8edd07
2
App.vue
2
App.vue
@ -46,7 +46,7 @@
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
console.log('App Launch')
|
||||
console.log('App Launch', uni.getSystemInfoSync())
|
||||
this.$store.dispatch('initConfig');
|
||||
this.$isResolve()
|
||||
try {
|
||||
|
@ -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) {
|
||||
|
@ -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){
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user