Commit cde35f52 authored by Damon's avatar Damon

fix: 刷新机构ID

parent 2788c998
......@@ -4,19 +4,20 @@ export default {
globalData: {
// 开发环境
uniEnv: process.uniEnv,
questionList: []
questionList: [],
orgId: -1
},
onLaunch: function(options) {
const orgId = options?.query?.orgId || -1
if (orgId !== this.orgId) {
this.logout()
}
this.$u.vuex('orgId', orgId)
this.globalData.id = options?.query?.orgId || -1
// 版本更新
this.updateApp()
},
onShow: function() {
console.log('App Show')
const orgId = this.globalData.id
if (orgId !== this.orgId) {
this.logout()
}
this.$u.vuex('orgId', orgId)
},
onHide: function() {
console.log('App Hide')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment