mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修改检查更新日志
This commit is contained in:
parent
0ca23cc4ca
commit
5e16ace1e7
|
@ -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',
|
||||
|
|
|
@ -108,10 +108,9 @@ const CheckUpdate = ({ socketMessage }: any) => {
|
|||
maskClosable: false,
|
||||
closable: false,
|
||||
okButtonProps: { disabled: true },
|
||||
title: '更新日志',
|
||||
title: '更新中...',
|
||||
centered: true,
|
||||
content: (
|
||||
<div style={{ height: '60vh', overflowY: 'auto' }}>
|
||||
<pre
|
||||
style={{
|
||||
wordBreak: 'break-all',
|
||||
|
@ -122,7 +121,6 @@ const CheckUpdate = ({ socketMessage }: any) => {
|
|||
>
|
||||
{value}
|
||||
</pre>
|
||||
</div>
|
||||
),
|
||||
});
|
||||
};
|
||||
|
@ -145,7 +143,7 @@ const CheckUpdate = ({ socketMessage }: any) => {
|
|||
closable: updateFailed,
|
||||
okButtonProps: { disabled: !updateFailed },
|
||||
content: (
|
||||
<div style={{ height: '60vh', overflowY: 'auto' }}>
|
||||
<>
|
||||
<pre
|
||||
style={{
|
||||
wordBreak: 'break-all',
|
||||
|
@ -157,7 +155,7 @@ const CheckUpdate = ({ socketMessage }: any) => {
|
|||
{newMessage}
|
||||
</pre>
|
||||
<div id="log-identifier" style={{ paddingBottom: 5 }}></div>
|
||||
</div>
|
||||
</>
|
||||
),
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user