增加资源占用提示

This commit is contained in:
whyour committed 2022-09-29 00:43:07 +08:00
1 parent 5530ce76e3
commit c6624e9001
2 files changed
+13 -10

No files matched your search

+4 -2
View File
@@ -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')!