Commit cde35f52 authored by Damon's avatar Damon

fix: 刷新机构ID

parent 2788c998
...@@ -4,19 +4,20 @@ export default { ...@@ -4,19 +4,20 @@ export default {
globalData: { globalData: {
// 开发环境 // 开发环境
uniEnv: process.uniEnv, uniEnv: process.uniEnv,
questionList: [] questionList: [],
orgId: -1
}, },
onLaunch: function(options) { onLaunch: function(options) {
const orgId = options?.query?.orgId || -1 this.globalData.id = options?.query?.orgId || -1
if (orgId !== this.orgId) {
this.logout()
}
this.$u.vuex('orgId', orgId)
// 版本更新 // 版本更新
this.updateApp() this.updateApp()
}, },
onShow: function() { onShow: function() {
console.log('App Show') const orgId = this.globalData.id
if (orgId !== this.orgId) {
this.logout()
}
this.$u.vuex('orgId', orgId)
}, },
onHide: function() { onHide: function() {
console.log('App Hide') 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