From 5a63cd253d302c560169b051528ae60f6d477d6b Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Tue, 12 Jul 2022 15:59:58 +0800 Subject: [PATCH] fix: oauth bind confirm url --- src/views/profile/ProfileInfo.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/profile/ProfileInfo.vue b/src/views/profile/ProfileInfo.vue index 905c0509d..e1c3e8491 100644 --- a/src/views/profile/ProfileInfo.vue +++ b/src/views/profile/ProfileInfo.vue @@ -287,6 +287,9 @@ export default { ] }, confirmUrl() { + return '/api/v1/authentication/confirm-oauth/' + }, + bindOrUNBindUrl() { let url = '' if (!this.object[`is_${this.currentEdit}_bound`]) { url = `/core/auth/${this.currentEdit}/qr/bind/?redirect_url=${this.$route.fullPath}` @@ -319,7 +322,7 @@ export default { return backendList }, verifyDone() { - const url = this.confirmUrl + const url = this.bindOrUNBindUrl if (!this.object[`is_${this.currentEdit}_bound`]) { window.location.href = url } else {