Merge branch 'main' of https://gitea.lihaink.cn/mkm/OfficeApp
This commit is contained in:
commit
715484f773
20
App.vue
20
App.vue
@ -45,17 +45,15 @@
|
|||||||
data
|
data
|
||||||
} = await userInfo();
|
} = await userInfo();
|
||||||
this.$store.commit('setUserInfo', data);
|
this.$store.commit('setUserInfo', data);
|
||||||
this.$isResolve()
|
// this.$isResolve()
|
||||||
// uni.$emit('home_initUserInfo', data);
|
// uni.$emit('home_initUserInfo', data);
|
||||||
return;
|
// return;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.$isResolve()
|
// this.$isResolve()
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('App Launch')
|
console.log('App Launch')
|
||||||
this.$store.dispatch('initConfig');
|
|
||||||
this.$isResolve()
|
|
||||||
try {
|
try {
|
||||||
if (!this.$store.state.app.token) uni.reLaunch({
|
if (!this.$store.state.app.token) uni.reLaunch({
|
||||||
url: '/pages/oaLogin/oaLogin',
|
url: '/pages/oaLogin/oaLogin',
|
||||||
@ -63,17 +61,29 @@
|
|||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||||
// #endif
|
// #endif
|
||||||
|
this.$isResolve()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
else {
|
else {
|
||||||
|
this.$store.dispatch('initConfig');
|
||||||
|
this.$isResolve()
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
this.$isResolve()
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/oaLogin/oaLogin',
|
||||||
|
success() {
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||||
// #endif
|
// #endif
|
||||||
|
this.$isResolve()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
// "appid" : "__UNI__3A527D1",
|
// "appid" : "__UNI__3A527D1",
|
||||||
"appid" : "__UNI__B5B1EDD",
|
"appid" : "__UNI__B5B1EDD",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName": "1.2.6",
|
"versionName" : "1.2.7",
|
||||||
"versionCode": 126,
|
"versionCode" : 127,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
@ -14,9 +14,6 @@
|
|||||||
"compatible" : {
|
"compatible" : {
|
||||||
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
||||||
},
|
},
|
||||||
"compatible": {
|
|
||||||
"ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
|
||||||
},
|
|
||||||
// "statusbar": {
|
// "statusbar": {
|
||||||
// "immersed": false
|
// "immersed": false
|
||||||
// },
|
// },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user