From 639122aecafc8a9ee71522bc5f0a510194b8036a Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Thu, 7 Jul 2022 17:04:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4confirm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserConfirmDialog/index.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/UserConfirmDialog/index.vue b/src/components/UserConfirmDialog/index.vue index c66bd8ffb..c5a18637c 100644 --- a/src/components/UserConfirmDialog/index.vue +++ b/src/components/UserConfirmDialog/index.vue @@ -139,8 +139,17 @@ export default { this.ConfirmType = data.confirm_type this.Content = data.content if (this.ConfirmType === 'relogin') { - this.title = this.$t('auth.NeedReLogin') - this.visible = true + this.$axios.post( + `/api/v1/authentication/confirm/`, + { + confirm_type: this.ConfirmType, + secret_key: '' + }, + { disableFlashErrorMsg: true }, + ).then(() => { this.$emit('UserConfirmDone', true) }).catch(() => { + this.title = this.$t('auth.NeedReLogin') + this.visible = true + }) return } if (this.ConfirmType === 'mfa') {