mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
增加资源占用提示
This commit is contained in:
@@ -102,6 +102,7 @@ const CheckUpdate = ({ socketMessage }: any) => {
|
||||
};
|
||||
|
||||
const showUpdatingModal = () => {
|
||||
setValue('');
|
||||
modalRef.current = Modal.info({
|
||||
width: 600,
|
||||
maskClosable: false,
|
||||
@@ -159,12 +160,13 @@ const CheckUpdate = ({ socketMessage }: any) => {
|
||||
</div>
|
||||
),
|
||||
});
|
||||
setValue(newMessage);
|
||||
|
||||
if (updateFailed) {
|
||||
if (updateFailed && !value.includes('失败,请检查')) {
|
||||
message.error('更新失败,请检查网络及日志或稍后再试');
|
||||
}
|
||||
|
||||
setValue(newMessage);
|
||||
|
||||
document.getElementById('log-identifier') &&
|
||||
document
|
||||
.getElementById('log-identifier')!
|
||||
|
||||
Reference in New Issue
Block a user