From f671176da0a86c6d1c490f87896109dab70feccf Mon Sep 17 00:00:00 2001 From: QuentinHsu Date: Sun, 24 Mar 2024 18:50:21 +0800 Subject: [PATCH] fix(global): error in console under dev mode --- web/src/components/PersonalSetting.js | 4 ++-- web/src/components/SystemSetting.js | 3 ++- web/src/pages/Setting/index.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/src/components/PersonalSetting.js b/web/src/components/PersonalSetting.js index ded9ad0..f08dfeb 100644 --- a/web/src/components/PersonalSetting.js +++ b/web/src/components/PersonalSetting.js @@ -595,7 +595,7 @@ const PersonalSetting = () => { onCancel={() => setShowWeChatBindModal(false)} // onOpen={() => setShowWeChatBindModal(true)} visible={showWeChatBindModal} - size={'mini'} + size={'small'} >
@@ -645,7 +645,7 @@ const PersonalSetting = () => { onClick={sendVerificationCode} disabled={disableButton || loading} > - {disableButton ? `重新发送(${countdown})` : '获取验证码'} + {disableButton ? `重新发送 (${countdown})` : '获取验证码'}
diff --git a/web/src/components/SystemSetting.js b/web/src/components/SystemSetting.js index 3716a00..c305d2c 100644 --- a/web/src/components/SystemSetting.js +++ b/web/src/components/SystemSetting.js @@ -42,7 +42,7 @@ const SystemSetting = () => { TurnstileSecretKey: '', RegisterEnabled: '', EmailDomainRestrictionEnabled: '', - EmailDomainWhitelist: '', + EmailDomainWhitelist: [], // telegram login TelegramOAuthEnabled: '', TelegramBotToken: '', @@ -85,6 +85,7 @@ const SystemSetting = () => { useEffect(() => { getOptions().then(); }, []); + useEffect(() => {}, [inputs.EmailDomainWhitelist]); const updateOption = async (key, value) => { setLoading(true); diff --git a/web/src/pages/Setting/index.js b/web/src/pages/Setting/index.js index 25d3600..fe38ea7 100644 --- a/web/src/pages/Setting/index.js +++ b/web/src/pages/Setting/index.js @@ -39,7 +39,7 @@ const Setting = () => { {panes.map((pane) => ( - + {pane.content} ))}