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}
}) }