From d8eb2d8c363b022d1a7ebb18782687cab55d1beb Mon Sep 17 00:00:00 2001 From: kelvin Date: Mon, 8 May 2023 13:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7token?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cert/apiToken.js | 8 ++++++++ src/views/cert/apiToken/index.vue | 21 ++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/api/cert/apiToken.js b/src/api/cert/apiToken.js index c6f7988..8596c26 100644 --- a/src/api/cert/apiToken.js +++ b/src/api/cert/apiToken.js @@ -42,3 +42,11 @@ export function delApiToken(id) { method: 'delete' }) } + +// 刷新令牌管理 +export function flushApiToken(id) { + return request({ + url: '/cert/apiToken/flush/' + id, + method: 'get' + }) +} diff --git a/src/views/cert/apiToken/index.vue b/src/views/cert/apiToken/index.vue index a67e0b3..7ee9f20 100644 --- a/src/views/cert/apiToken/index.vue +++ b/src/views/cert/apiToken/index.vue @@ -90,6 +90,15 @@ v-hasPermi="['cert:apiToken:export']" >导出 + + 刷新TOKEN + @@ -214,7 +223,7 @@