mirror of https://github.com/openspug/spug
fix issues
parent
804107196a
commit
f26635e9ad
|
@ -6,7 +6,7 @@
|
|||
import React from 'react';
|
||||
import styles from './index.module.css';
|
||||
import { SmileTwoTone } from '@ant-design/icons';
|
||||
import { Descriptions, Spin, Button, notification } from 'antd';
|
||||
import { Descriptions, Spin, Button, Alert, notification } from 'antd';
|
||||
import { observer } from 'mobx-react'
|
||||
import { http, VERSION } from 'libs';
|
||||
|
||||
|
@ -71,6 +71,9 @@ class About extends React.Component {
|
|||
rel="noopener noreferrer">https://spug.cc/docs/change-log/</a>
|
||||
</Descriptions.Item>
|
||||
</Descriptions>
|
||||
{info['spug_version'] !== VERSION && (
|
||||
<Alert showIcon style={{width: 500}} type="warning" message="Spug API版本与Web版本不匹配,请尝试刷新浏览器后再次查看。"/>
|
||||
)}
|
||||
</Spin>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue