From 7340997cf50882ff9d576eeca4e175d15aa17957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 20 Jun 2023 15:00:29 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20!pr370=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=B8=89=E6=96=B9=E7=99=BB=E5=BD=95=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.ts | 3 --- src/api/system/social/auth.ts | 15 +++------------ .../{socialLogin => SocialLogin}/index.vue | 4 ++-- src/router/index.ts | 2 +- src/views/login.vue | 4 ++-- src/views/system/user/profile/thirdParty.vue | 4 ++-- 6 files changed, 10 insertions(+), 22 deletions(-) rename src/layout/components/{socialLogin => SocialLogin}/index.vue (89%) diff --git a/src/api/login.ts b/src/api/login.ts index 6c03dd3..f261c60 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -74,9 +74,6 @@ export function socialLogin(source: string, code: any, state: any): AxiosPromise return request({ url: '/auth/social-login/' + source, method: 'get', - headers: { - isToken: true - }, params: data }); } diff --git a/src/api/system/social/auth.ts b/src/api/system/social/auth.ts index b1f2106..17a46d3 100644 --- a/src/api/system/social/auth.ts +++ b/src/api/system/social/auth.ts @@ -4,10 +4,7 @@ import request from '@/utils/request'; export function authBinding(source: string) { return request({ url: '/auth/binding/' + source, - method: 'get', - headers: { - isToken: true - } + method: 'get' }); } @@ -15,19 +12,13 @@ export function authBinding(source: string) { export function authUnlock(authId: string) { return request({ url: '/auth/unlock/' + authId, - method: 'delete', - headers: { - isToken: true - } + method: 'delete' }); } //获取授权列表 export function getAuthList() { return request({ url: '/system/social/list', - method: 'get', - headers: { - isToken: true - } + method: 'get' }); } diff --git a/src/layout/components/socialLogin/index.vue b/src/layout/components/SocialLogin/index.vue similarity index 89% rename from src/layout/components/socialLogin/index.vue rename to src/layout/components/SocialLogin/index.vue index e125c12..fad8286 100644 --- a/src/layout/components/socialLogin/index.vue +++ b/src/layout/components/SocialLogin/index.vue @@ -3,8 +3,8 @@