|
@@ -264,23 +264,25 @@ export default {
|
|
|
},
|
|
|
async getLogin() {
|
|
|
this.loading = true
|
|
|
- const userid = await this.login()
|
|
|
- let redirect_uri = Cookies.get('redirectUri')
|
|
|
- if (!redirect_uri || redirect_uri === 'undefined') {
|
|
|
- redirect_uri = ''
|
|
|
- }
|
|
|
- this.Loading = false
|
|
|
- console.log(redirect_uri)
|
|
|
- if (userid) {
|
|
|
- if (redirect_uri) {
|
|
|
- // Cookies.remove('redirectUri')
|
|
|
- window.location.href = redirect_uri
|
|
|
- } else {
|
|
|
- this.$router.replace('/appStoreCopy')
|
|
|
+ try{
|
|
|
+ const userid = await this.login()
|
|
|
+ let redirect_uri = Cookies.get('redirectUri')
|
|
|
+ if (!redirect_uri || redirect_uri === 'undefined') {
|
|
|
+ redirect_uri = ''
|
|
|
+ }
|
|
|
+ this.Loading = false
|
|
|
+ console.log(redirect_uri)
|
|
|
+ if (userid) {
|
|
|
+ if (redirect_uri) {
|
|
|
+ // Cookies.remove('redirectUri')
|
|
|
+ window.location.href = redirect_uri
|
|
|
+ } else {
|
|
|
+ this.$router.replace('/appStoreCopy')
|
|
|
+ }
|
|
|
}
|
|
|
- return '1'
|
|
|
+ }catch(e){
|
|
|
+ console.log(e)
|
|
|
}
|
|
|
- return '2'
|
|
|
// eduGet().then(res => {})
|
|
|
}
|
|
|
},
|