系统设置增加数据恢复功能

This commit is contained in:
whyour
2023-07-16 22:02:30 +08:00
parent 88b87de391
commit 93e94ea94c
5 changed files with 169 additions and 16 deletions
+3 -3
View File
@@ -129,9 +129,9 @@ const CheckUpdate = ({ socketMessage, systemInfo }: any) => {
okText: '重启',
onOk() {
request
.put(`${config.apiPrefix}system/reload`)
.put(`${config.apiPrefix}system/reload`, { data: { type: 'system' } })
.then((_data: any) => {
message.warning({
message.success({
content: (
<span>
@@ -147,7 +147,7 @@ const CheckUpdate = ({ socketMessage, systemInfo }: any) => {
});
setTimeout(() => {
window.location.reload();
}, 14);
}, 14000);
})
.catch((error: any) => {
console.log(error);