增加 update 服务

This commit is contained in:
whyour
2024-03-10 22:07:06 +08:00
parent cdeca4b808
commit 68ad01e0e8
11 changed files with 156 additions and 25 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ const CheckUpdate = ({ systemInfo }: any) => {
const reloadSystem = (type?: string) => {
request
.put(`${config.apiPrefix}system/reload`, { type })
.put(`${config.apiPrefix}update/${type}`)
.then((_data: any) => {
message.success({
content: (
@@ -220,7 +220,7 @@ const CheckUpdate = ({ systemInfo }: any) => {
</Button>
<Button
type="primary"
onClick={() => reloadSystem()}
onClick={() => reloadSystem('system')}
style={{ marginLeft: 8 }}
>
{intl.get('重新启动')}
+1 -1
View File
@@ -141,7 +141,7 @@ const Other = ({
okText: intl.get('重启'),
onOk() {
request
.put(`${config.apiPrefix}system/reload`, { type: 'data' })
.put(`${config.apiPrefix}update/data`)
.then(() => {
message.success({
content: (