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
3432500a
authored
May 14, 2024
by
QuentinHsu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 运营设置-数据刷新逻辑
parent
f0ac6e01
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
web/src/pages/Setting/Operation/SettingsCreditLimit.js
+2
-2
web/src/pages/Setting/Operation/SettingsDataDashboard.js
+1
-1
web/src/pages/Setting/Operation/SettingsDrawing.js
+1
-1
web/src/pages/Setting/Operation/SettingsGeneral.js
+1
-1
web/src/pages/Setting/Operation/SettingsLog.js
+1
-1
web/src/pages/Setting/Operation/SettingsMagnification.js
+1
-1
web/src/pages/Setting/Operation/SettingsMonitoring.js
+1
-1
web/src/pages/Setting/Operation/SettingsSensitiveWords.js
+1
-1
No files found.
web/src/pages/Setting/Operation/SettingsCreditLimit.js
View file @
3432500a
...
@@ -40,16 +40,16 @@ export default function SettingsCreditLimit(props) {
...
@@ -40,16 +40,16 @@ export default function SettingsCreditLimit(props) {
if
(
requestQueue
.
length
===
1
)
{
if
(
requestQueue
.
length
===
1
)
{
if
(
res
.
includes
(
undefined
))
return
;
if
(
res
.
includes
(
undefined
))
return
;
}
else
if
(
requestQueue
.
length
>
1
)
{
}
else
if
(
requestQueue
.
length
>
1
)
{
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败
,请重试
'
);
}
}
showSuccess
(
'更新成功'
);
showSuccess
(
'更新成功'
);
props
.
refresh
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
showError
(
'更新失败'
);
showError
(
'更新失败'
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
props
.
refresh
();
});
});
}
}
...
...
web/src/pages/Setting/Operation/SettingsDataDashboard.js
View file @
3432500a
...
@@ -47,13 +47,13 @@ export default function DataDashboard(props) {
...
@@ -47,13 +47,13 @@ export default function DataDashboard(props) {
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
}
}
showSuccess
(
'更新成功'
);
showSuccess
(
'更新成功'
);
props
.
refresh
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
showError
(
'更新失败'
);
showError
(
'更新失败'
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
props
.
refresh
();
});
});
}
}
...
...
web/src/pages/Setting/Operation/SettingsDrawing.js
View file @
3432500a
...
@@ -44,13 +44,13 @@ export default function SettingsDrawing(props) {
...
@@ -44,13 +44,13 @@ export default function SettingsDrawing(props) {
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
}
}
showSuccess
(
'更新成功'
);
showSuccess
(
'更新成功'
);
props
.
refresh
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
showError
(
'更新失败'
);
showError
(
'更新失败'
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
props
.
refresh
();
});
});
}
}
...
...
web/src/pages/Setting/Operation/SettingsGeneral.js
View file @
3432500a
...
@@ -50,13 +50,13 @@ export default function GeneralSettings(props) {
...
@@ -50,13 +50,13 @@ export default function GeneralSettings(props) {
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
}
}
showSuccess
(
'更新成功'
);
showSuccess
(
'更新成功'
);
props
.
refresh
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
showError
(
'更新失败'
);
showError
(
'更新失败'
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
props
.
refresh
();
});
});
}
}
...
...
web/src/pages/Setting/Operation/SettingsLog.js
View file @
3432500a
...
@@ -46,13 +46,13 @@ export default function SettingsLog(props) {
...
@@ -46,13 +46,13 @@ export default function SettingsLog(props) {
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
}
}
showSuccess
(
'更新成功'
);
showSuccess
(
'更新成功'
);
props
.
refresh
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
showError
(
'更新失败'
);
showError
(
'更新失败'
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
props
.
refresh
();
});
});
}
}
async
function
onCleanHistoryLog
()
{
async
function
onCleanHistoryLog
()
{
...
...
web/src/pages/Setting/Operation/SettingsMagnification.js
View file @
3432500a
...
@@ -46,13 +46,13 @@ export default function SettingsMagnification(props) {
...
@@ -46,13 +46,13 @@ export default function SettingsMagnification(props) {
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
}
}
showSuccess
(
'更新成功'
);
showSuccess
(
'更新成功'
);
props
.
refresh
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
showError
(
'更新失败'
);
showError
(
'更新失败'
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
props
.
refresh
();
});
});
}
catch
(
error
)
{
}
catch
(
error
)
{
showError
(
'请检查输入'
);
showError
(
'请检查输入'
);
...
...
web/src/pages/Setting/Operation/SettingsMonitoring.js
View file @
3432500a
...
@@ -43,13 +43,13 @@ export default function SettingsMonitoring(props) {
...
@@ -43,13 +43,13 @@ export default function SettingsMonitoring(props) {
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
}
}
showSuccess
(
'更新成功'
);
showSuccess
(
'更新成功'
);
props
.
refresh
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
showError
(
'更新失败'
);
showError
(
'更新失败'
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
props
.
refresh
();
});
});
}
}
...
...
web/src/pages/Setting/Operation/SettingsSensitiveWords.js
View file @
3432500a
...
@@ -42,13 +42,13 @@ export default function SettingsSensitiveWords(props) {
...
@@ -42,13 +42,13 @@ export default function SettingsSensitiveWords(props) {
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
if
(
res
.
includes
(
undefined
))
return
showError
(
'部分更新失败'
);
}
}
showSuccess
(
'更新成功'
);
showSuccess
(
'更新成功'
);
props
.
refresh
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
showError
(
'更新失败'
);
showError
(
'更新失败'
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
props
.
refresh
();
});
});
}
}
...
...
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