支持组件自适应项目

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' corpId = 'ww2a667717a70164f1'
module = 'wangge' module = 'wangge'
} }
this.setModule(module)
this.getToken({...this.form, module, corpId}).then(token => { this.getToken({...this.form, module, corpId}).then(token => {
if (token) {
this.login(token) this.login(token)
if (module != 'AppCountryAlbum') { if (module != 'AppCountryAlbum') {
this.getAccount({module}).then(() => this.setModule(module)) this.getAccount({module})
} }
this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({}) this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({})
}
}).catch(() => 0) }).catch(() => 0)
} }
}) })