Commit f6cfded1 authored by Facius's avatar Facius

Merge branch 'dev-v1.0.0' of https://git.banshouhui.com/wuzhenzhe/study into dev-v1.0.0

parents 05e7e07a 10a3544e
...@@ -7,7 +7,11 @@ export default { ...@@ -7,7 +7,11 @@ export default {
questionList: [] questionList: []
}, },
onLaunch: function(options) { onLaunch: function(options) {
this.$u.vuex('orgId', options?.query?.orgId || -1) const orgId = options?.query?.orgId || -1
if (orgId !== this.orgId) {
this.logout()
}
this.$u.vuex('orgId', orgId)
// 版本更新 // 版本更新
this.updateApp() this.updateApp()
}, },
...@@ -76,6 +80,11 @@ export default { ...@@ -76,6 +80,11 @@ export default {
}) })
} }
}, },
logout() {
this.$u.vuex('vuex_token', '')
this.$u.vuex('openId', '')
this.$u.vuex('userInfo', {})
}
}, },
} }
</script> </script>
......
...@@ -169,18 +169,16 @@ export default { ...@@ -169,18 +169,16 @@ export default {
background-color: #2953ff; background-color: #2953ff;
background-size: 100% 920rpx; background-size: 100% 920rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
height: 120vh; height: 100vh;
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; width: 100%;
} }
.content { .content {
display: flex; padding: 30rpx 24rpx 50rpx 24rpx;
flex-direction: column; height: 100%;
align-items: center; overflow: auto;
justify-content: center;
padding: 30rpx 24rpx 0rpx 24rpx;
} }
.cert-body { .cert-body {
......
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