更新优化
This commit is contained in:
parent
ddc2da006e
commit
173a8edd07
2
App.vue
2
App.vue
@ -46,7 +46,7 @@
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('App Launch')
|
console.log('App Launch', uni.getSystemInfoSync())
|
||||||
this.$store.dispatch('initConfig');
|
this.$store.dispatch('initConfig');
|
||||||
this.$isResolve()
|
this.$isResolve()
|
||||||
try {
|
try {
|
||||||
|
@ -295,11 +295,8 @@ export default {
|
|||||||
},
|
},
|
||||||
async onLoad () {
|
async onLoad () {
|
||||||
await this.$onLaunched;
|
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;
|
this.options.data = bj;
|
||||||
// uni.$on('home_initUserInfo', (data=null)=>{
|
|
||||||
// this.initUserInfo(data);
|
|
||||||
// });
|
|
||||||
//#ifdef APP-PLUS
|
//#ifdef APP-PLUS
|
||||||
let that = this;
|
let that = this;
|
||||||
jpushModule.addNotificationListener(function (result) {
|
jpushModule.addNotificationListener(function (result) {
|
||||||
|
@ -53,7 +53,7 @@ import { destroyAccount } from '@/api/oaUser.js';
|
|||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
let os = uni.getSystemInfoSync();
|
let os = uni.getSystemInfoSync();
|
||||||
this.version = 'v' + os.appVersion;
|
this.version = 'v' + (os?.appWgtVersion||os?.appVersion);
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
clickItem(e){
|
clickItem(e){
|
||||||
|
@ -58,7 +58,7 @@ const actions = {
|
|||||||
})
|
})
|
||||||
const wgt_v = uni.getStorageSync('wgt_version')||'1.0.0';
|
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{
|
try{
|
||||||
let info = res.data.version_info||{};
|
let info = res.data.version_info||{};
|
||||||
let version = {
|
let version = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user