Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
164bee8c
authored
Mar 24, 2024
by
QuentinHsu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(global): error in console under dev mode
parent
2e2820ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
web/src/components/PersonalSetting.js
+2
-2
web/src/components/SystemSetting.js
+2
-1
web/src/pages/Setting/index.js
+1
-1
No files found.
web/src/components/PersonalSetting.js
View file @
164bee8c
...
...
@@ -595,7 +595,7 @@ const PersonalSetting = () => {
onCancel={() => setShowWeChatBindModal(false)}
// onOpen={() => setShowWeChatBindModal(true)}
visible={showWeChatBindModal}
size={'
mini
'}
size={'
small
'}
>
<Image src={status.wechat_qrcode} />
<div style={{ textAlign: 'center' }}>
...
...
@@ -645,7 +645,7 @@ const PersonalSetting = () => {
onClick={sendVerificationCode}
disabled={disableButton || loading}
>
{disableButton ? `
重新发送
(
$
{
countdown
})
` : '获取验证码'}
{disableButton ? `
重新发送
(
$
{
countdown
})
` : '获取验证码'}
</Button>
</div>
<div style={{ marginTop: 10 }}>
...
...
web/src/components/SystemSetting.js
View file @
164bee8c
...
...
@@ -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
);
...
...
web/src/pages/Setting/index.js
View file @
164bee8c
...
...
@@ -39,7 +39,7 @@ const Setting = () => {
<
Layout
.
Content
>
<
Tabs
type
=
'line'
defaultActiveKey
=
'1'
>
{
panes
.
map
((
pane
)
=>
(
<
TabPane
itemKey
=
{
pane
.
itemKey
}
tab
=
{
pane
.
tab
}
>
<
TabPane
itemKey
=
{
pane
.
itemKey
}
tab
=
{
pane
.
tab
}
key
=
{
pane
.
itemKey
}
>
{
pane
.
content
}
<
/TabPane
>
))}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment