支持组件自适应项目

This commit is contained in:
aixianling
2022-06-14 09:49:15 +08:00
parent e784c59b3a
commit 64d0d1bb18

View File

@@ -59,12 +59,15 @@ export default {
corpId = 'ww2a667717a70164f1'
module = 'wangge'
}
this.setModule(module)
this.getToken({...this.form, module, corpId}).then(token => {
this.login(token)
if (module != 'AppCountryAlbum') {
this.getAccount({module}).then(() => this.setModule(module))
if (token) {
this.login(token)
if (module != 'AppCountryAlbum') {
this.getAccount({module})
}
this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({})
}
this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({})
}).catch(() => 0)
}
})