支持组件自适应项目
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user