整合企微token变量
This commit is contained in:
@@ -64,14 +64,11 @@ export default {
|
||||
module = 'wangge'
|
||||
}
|
||||
this.setModule(module)
|
||||
this.getToken({...this.form, module, corpId}).then(token => {
|
||||
if (token) {
|
||||
this.login(token)
|
||||
this.getToken({...this.form, module, corpId}).then(() => {
|
||||
if (module != 'AppCountryAlbum') {
|
||||
this.getAccount({module})
|
||||
}
|
||||
this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({})
|
||||
}
|
||||
}).catch(() => 0)
|
||||
}
|
||||
})
|
||||
@@ -93,14 +90,11 @@ export default {
|
||||
module = 'wangge'
|
||||
}
|
||||
let {code} = this.$route.query
|
||||
this.getToken({code}).then(token => {
|
||||
if (token) {
|
||||
this.login(token)
|
||||
this.getToken({code}).then(() => {
|
||||
if (module != 'AppCountryAlbum') {
|
||||
this.getAccount({module})
|
||||
}
|
||||
this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({})
|
||||
}
|
||||
}).catch(err => {
|
||||
this.err = err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user