From e5e389e22056d30608f93661cdba9c000a7369c2 Mon Sep 17 00:00:00 2001 From: vapao Date: Thu, 23 Nov 2023 18:53:41 +0800 Subject: [PATCH] # fix issues --- spug_web/src/pages/system/setting/PushSetting.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spug_web/src/pages/system/setting/PushSetting.js b/spug_web/src/pages/system/setting/PushSetting.js index f1a33edf..f59a6733 100644 --- a/spug_web/src/pages/system/setting/PushSetting.js +++ b/spug_web/src/pages/system/setting/PushSetting.js @@ -21,6 +21,7 @@ export default observer(function () { if (pushKey) { fetchBalance() } + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); function fetchBalance() { @@ -46,6 +47,10 @@ export default observer(function () { } function handleUnbind() { + if (store.settings.MFA?.enable) { + message.error('请先关闭登录MFA认证,否则将造成无法登录'); + return + } setLoading(true); http.post('/api/setting/push/bind/', {spug_push_key: ''}) .then(() => { @@ -64,8 +69,8 @@ export default observer(function () {
推送服务设置
请登录 ,至个人中心 / - 个人设置查看用户ID,注意保密该ID请勿泄漏给第三方。
}> + extra={
请登录推送助手,至个人中心 / 个人设置查看用户ID,注意保密该ID请勿泄漏给第三方。
}> {spugPushKey ? (