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
031bfc9d
authored
May 14, 2024
by
QuentinHsu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 运营设置-提示文案
parent
3432500a
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
24 deletions
+25
-24
web/src/pages/Setting/Operation/SettingsCreditLimit.js
+3
-3
web/src/pages/Setting/Operation/SettingsDataDashboard.js
+3
-3
web/src/pages/Setting/Operation/SettingsDrawing.js
+3
-3
web/src/pages/Setting/Operation/SettingsGeneral.js
+3
-3
web/src/pages/Setting/Operation/SettingsLog.js
+3
-3
web/src/pages/Setting/Operation/SettingsMagnification.js
+4
-3
web/src/pages/Setting/Operation/SettingsMonitoring.js
+3
-3
web/src/pages/Setting/Operation/SettingsSensitiveWords.js
+3
-3
No files found.
web/src/pages/Setting/Operation/SettingsCreditLimit.js
View file @
031bfc9d
...
...
@@ -40,13 +40,13 @@ export default function SettingsCreditLimit(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
更新
失败,请重试'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
保存
失败,请重试'
);
}
showSuccess
(
'
更新
成功'
);
showSuccess
(
'
保存
成功'
);
props
.
refresh
();
})
.
catch
(()
=>
{
showError
(
'
更新失败
'
);
showError
(
'
保存失败,请重试
'
);
})
.
finally
(()
=>
{
setLoading
(
false
);
...
...
web/src/pages/Setting/Operation/SettingsDataDashboard.js
View file @
031bfc9d
...
...
@@ -44,13 +44,13 @@ export default function DataDashboard(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
更新失败
'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
保存失败,请重试
'
);
}
showSuccess
(
'
更新
成功'
);
showSuccess
(
'
保存
成功'
);
props
.
refresh
();
})
.
catch
(()
=>
{
showError
(
'
更新失败
'
);
showError
(
'
保存失败,请重试
'
);
})
.
finally
(()
=>
{
setLoading
(
false
);
...
...
web/src/pages/Setting/Operation/SettingsDrawing.js
View file @
031bfc9d
...
...
@@ -41,13 +41,13 @@ export default function SettingsDrawing(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
更新失败
'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
保存失败,请重试
'
);
}
showSuccess
(
'
更新
成功'
);
showSuccess
(
'
保存
成功'
);
props
.
refresh
();
})
.
catch
(()
=>
{
showError
(
'
更新失败
'
);
showError
(
'
保存失败,请重试
'
);
})
.
finally
(()
=>
{
setLoading
(
false
);
...
...
web/src/pages/Setting/Operation/SettingsGeneral.js
View file @
031bfc9d
...
...
@@ -47,13 +47,13 @@ export default function GeneralSettings(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
更新失败
'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
保存失败,请重试
'
);
}
showSuccess
(
'
更新
成功'
);
showSuccess
(
'
保存
成功'
);
props
.
refresh
();
})
.
catch
(()
=>
{
showError
(
'
更新失败
'
);
showError
(
'
保存失败,请重试
'
);
})
.
finally
(()
=>
{
setLoading
(
false
);
...
...
web/src/pages/Setting/Operation/SettingsLog.js
View file @
031bfc9d
...
...
@@ -43,13 +43,13 @@ export default function SettingsLog(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
更新失败
'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
保存失败,请重试
'
);
}
showSuccess
(
'
更新
成功'
);
showSuccess
(
'
保存
成功'
);
props
.
refresh
();
})
.
catch
(()
=>
{
showError
(
'
更新失败
'
);
showError
(
'
保存失败,请重试
'
);
})
.
finally
(()
=>
{
setLoading
(
false
);
...
...
web/src/pages/Setting/Operation/SettingsMagnification.js
View file @
031bfc9d
...
...
@@ -43,13 +43,14 @@ export default function SettingsMagnification(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分保存失败,请重试'
);
}
showSuccess
(
'
更新
成功'
);
showSuccess
(
'
保存
成功'
);
props
.
refresh
();
})
.
catch
(()
=>
{
showError
(
'
更新失败
'
);
showError
(
'
保存失败,请重试
'
);
})
.
finally
(()
=>
{
setLoading
(
false
);
...
...
web/src/pages/Setting/Operation/SettingsMonitoring.js
View file @
031bfc9d
...
...
@@ -40,13 +40,13 @@ export default function SettingsMonitoring(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
更新失败
'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
保存失败,请重试
'
);
}
showSuccess
(
'
更新
成功'
);
showSuccess
(
'
保存
成功'
);
props
.
refresh
();
})
.
catch
(()
=>
{
showError
(
'
更新失败
'
);
showError
(
'
保存失败,请重试
'
);
})
.
finally
(()
=>
{
setLoading
(
false
);
...
...
web/src/pages/Setting/Operation/SettingsSensitiveWords.js
View file @
031bfc9d
...
...
@@ -39,13 +39,13 @@ export default function SettingsSensitiveWords(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
更新失败
'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分
保存失败,请重试
'
);
}
showSuccess
(
'
更新
成功'
);
showSuccess
(
'
保存
成功'
);
props
.
refresh
();
})
.
catch
(()
=>
{
showError
(
'
更新失败
'
);
showError
(
'
保存失败,请重试
'
);
})
.
finally
(()
=>
{
setLoading
(
false
);
...
...
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