U 优化新版本提示信息2

pull/220/head
vapao 2020-09-28 22:49:58 +08:00
parent d076a76711
commit 7b9a9bb6b1
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ 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',