From e81f8c51cb1553e51a902c94422dce9c65b18c94 Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Tue, 13 Jun 2023 14:03:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E2=80=9D?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E7=94=A8=E6=88=B7=E5=BC=BA=E9=80=80=E2=80=9C?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/oauth2/token.ts | 2 +- src/views/system/oauth2/token/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/system/oauth2/token.ts b/src/api/system/oauth2/token.ts index dc7c44f5..b7d41dcc 100644 --- a/src/api/system/oauth2/token.ts +++ b/src/api/system/oauth2/token.ts @@ -23,6 +23,6 @@ export const getAccessTokenPageApi = (params: OAuth2TokenPageReqVO) => { } // 删除 token -export const deleteAccessTokenApi = (accessToken: number) => { +export const deleteAccessTokenApi = (accessToken: string) => { return request.delete({ url: '/system/oauth2-token/delete?accessToken=' + accessToken }) } diff --git a/src/views/system/oauth2/token/index.vue b/src/views/system/oauth2/token/index.vue index f0dfbd9c..e9a41ee3 100644 --- a/src/views/system/oauth2/token/index.vue +++ b/src/views/system/oauth2/token/index.vue @@ -10,7 +10,7 @@ preIcon="ep:delete" :title="t('action.logout')" v-hasPermi="['system:oauth2-token:delete']" - @click="handleForceLogout(row.id)" + @click="handleForceLogout(row.accessToken)" /> @@ -49,11 +49,11 @@ const handleDetail = async (row: TokenApi.OAuth2TokenVO) => { } // 强退操作 -const handleForceLogout = (rowId: number) => { +const handleForceLogout = (accessToken: string) => { message .confirm('是否要强制退出用户') .then(async () => { - await TokenApi.deleteAccessTokenApi(rowId) + await TokenApi.deleteAccessTokenApi(accessToken) message.success(t('common.success')) }) .finally(async () => {