From 5e16ace1e7071b513e84db2bed49b3c7d5170fc9 Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 27 Oct 2022 10:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E6=9F=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/system.ts | 4 ---- src/pages/setting/checkUpdate.tsx | 8 +++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/back/services/system.ts b/back/services/system.ts index ec41bab6..afcc2dc5 100644 --- a/back/services/system.ts +++ b/back/services/system.ts @@ -136,10 +136,6 @@ export default class SystemService { public async updateSystem() { const cp = spawn('ql -l update', { shell: '/bin/bash' }); - this.sockService.sendMessage({ - type: 'updateSystemVersion', - message: `开始更新系统`, - }); cp.stdout.on('data', (data) => { this.sockService.sendMessage({ type: 'updateSystemVersion', diff --git a/src/pages/setting/checkUpdate.tsx b/src/pages/setting/checkUpdate.tsx index 73c93a95..1841a419 100644 --- a/src/pages/setting/checkUpdate.tsx +++ b/src/pages/setting/checkUpdate.tsx @@ -108,10 +108,9 @@ const CheckUpdate = ({ socketMessage }: any) => { maskClosable: false, closable: false, okButtonProps: { disabled: true }, - title: '更新日志', + title: '更新中...', centered: true, content: ( -
 {
           >
             {value}
           
-
), }); }; @@ -145,7 +143,7 @@ const CheckUpdate = ({ socketMessage }: any) => { closable: updateFailed, okButtonProps: { disabled: !updateFailed }, content: ( -
+ <>
 {
             {newMessage}
           
-
+ ), });