mirror of https://github.com/openspug/spug
U 优化新版本提示信息2
parent
d076a76711
commit
7b9a9bb6b1
|
@ -26,7 +26,7 @@ class About extends React.Component {
|
||||||
.finally(() => this.setState({fetching: false}))
|
.finally(() => this.setState({fetching: false}))
|
||||||
http.get('https://gitee.com/api/v5/repos/openspug/spug/releases/latest')
|
http.get('https://gitee.com/api/v5/repos/openspug/spug/releases/latest')
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.tag_name && res.tag_name === VERSION) {
|
if (res.tag_name && res.tag_name !== VERSION) {
|
||||||
const logs = res.body.replace(/- */g, '');
|
const logs = res.body.replace(/- */g, '');
|
||||||
notification.open({
|
notification.open({
|
||||||
key: 'new_version',
|
key: 'new_version',
|
||||||
|
|
Loading…
Reference in New Issue