mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-19 00:46:37 +08:00
Merge pull request #145 from QuentinHsu/fix-dev-error
fix(global): error in console under dev mode
This commit is contained in:
commit
01e3acfada
@ -595,7 +595,7 @@ const PersonalSetting = () => {
|
|||||||
onCancel={() => setShowWeChatBindModal(false)}
|
onCancel={() => setShowWeChatBindModal(false)}
|
||||||
// onOpen={() => setShowWeChatBindModal(true)}
|
// onOpen={() => setShowWeChatBindModal(true)}
|
||||||
visible={showWeChatBindModal}
|
visible={showWeChatBindModal}
|
||||||
size={'mini'}
|
size={'small'}
|
||||||
>
|
>
|
||||||
<Image src={status.wechat_qrcode} />
|
<Image src={status.wechat_qrcode} />
|
||||||
<div style={{ textAlign: 'center' }}>
|
<div style={{ textAlign: 'center' }}>
|
||||||
@ -645,7 +645,7 @@ const PersonalSetting = () => {
|
|||||||
onClick={sendVerificationCode}
|
onClick={sendVerificationCode}
|
||||||
disabled={disableButton || loading}
|
disabled={disableButton || loading}
|
||||||
>
|
>
|
||||||
{disableButton ? `重新发送(${countdown})` : '获取验证码'}
|
{disableButton ? `重新发送 (${countdown})` : '获取验证码'}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ marginTop: 10 }}>
|
<div style={{ marginTop: 10 }}>
|
||||||
|
@ -42,7 +42,7 @@ const SystemSetting = () => {
|
|||||||
TurnstileSecretKey: '',
|
TurnstileSecretKey: '',
|
||||||
RegisterEnabled: '',
|
RegisterEnabled: '',
|
||||||
EmailDomainRestrictionEnabled: '',
|
EmailDomainRestrictionEnabled: '',
|
||||||
EmailDomainWhitelist: '',
|
EmailDomainWhitelist: [],
|
||||||
// telegram login
|
// telegram login
|
||||||
TelegramOAuthEnabled: '',
|
TelegramOAuthEnabled: '',
|
||||||
TelegramBotToken: '',
|
TelegramBotToken: '',
|
||||||
@ -85,6 +85,7 @@ const SystemSetting = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getOptions().then();
|
getOptions().then();
|
||||||
}, []);
|
}, []);
|
||||||
|
useEffect(() => {}, [inputs.EmailDomainWhitelist]);
|
||||||
|
|
||||||
const updateOption = async (key, value) => {
|
const updateOption = async (key, value) => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
@ -39,7 +39,7 @@ const Setting = () => {
|
|||||||
<Layout.Content>
|
<Layout.Content>
|
||||||
<Tabs type='line' defaultActiveKey='1'>
|
<Tabs type='line' defaultActiveKey='1'>
|
||||||
{panes.map((pane) => (
|
{panes.map((pane) => (
|
||||||
<TabPane itemKey={pane.itemKey} tab={pane.tab}>
|
<TabPane itemKey={pane.itemKey} tab={pane.tab} key={pane.itemKey}>
|
||||||
{pane.content}
|
{pane.content}
|
||||||
</TabPane>
|
</TabPane>
|
||||||
))}
|
))}
|
||||||
|
Loading…
Reference in New Issue
Block a user