mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
增加 update 服务
This commit is contained in:
@@ -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('重新启动')}
|
||||
|
||||
@@ -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: (
|
||||
|
||||
Reference in New Issue
Block a user