支持组件自适应项目

This commit is contained in:
aixianling
2022-06-14 09:44:09 +08:00
parent 962cabfe96
commit 0f09a7c66a
3 changed files with 12 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ export default {
},
methods: {
...mapActions(['getToken', 'getAccount', 'getCode']),
...mapMutations(['login', 'logout']),
...mapMutations(['login', 'logout', 'setModule']),
handleLogin() {
this.$refs.loginForm.validate(v => {
if (v) {
@@ -62,7 +62,7 @@ export default {
this.getToken({...this.form, module, corpId}).then(token => {
this.login(token)
if (module != 'AppCountryAlbum') {
this.getAccount({module})
this.getAccount({module}).then(() => this.setModule(module))
}
this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({})
}).catch(() => 0)