From d076a767115d795f96bbcc379d1ba0a63ae8c0f6 Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 28 Sep 2020 22:47:10 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/system/setting/About.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spug_web/src/pages/system/setting/About.js b/spug_web/src/pages/system/setting/About.js index d55ca10..328ced0 100644 --- a/spug_web/src/pages/system/setting/About.js +++ b/spug_web/src/pages/system/setting/About.js @@ -26,13 +26,15 @@ class About extends React.Component { .finally(() => this.setState({fetching: false})) http.get('https://gitee.com/api/v5/repos/openspug/spug/releases/latest') .then(res => { - if (res.tag_name && res.tag_name !== VERSION) { + if (res.tag_name && res.tag_name === VERSION) { const logs = res.body.replace(/- */g, ''); notification.open({ + key: 'new_version', duration: 0, top: 88, - icon: , message: `发现新版本 ${res.tag_name}`, + icon: , + btn: 如何升级?, description:
{logs}
}) }