diff --git a/spug_web/src/pages/system/setting/About.js b/spug_web/src/pages/system/setting/About.js index 0e07b5c..30493c3 100644 --- a/spug_web/src/pages/system/setting/About.js +++ b/spug_web/src/pages/system/setting/About.js @@ -6,7 +6,7 @@ import React from 'react'; import styles from './index.module.css'; import { SmileTwoTone } from '@ant-design/icons'; -import { Descriptions, Spin, notification } from "antd"; +import { Descriptions, Spin, Button, notification } from 'antd'; import { observer } from 'mobx-react' import { http, VERSION } from 'libs'; @@ -35,7 +35,17 @@ class About extends React.Component { message: `发现新版本 ${res.version}`, icon: , btn: 如何升级?, - description:
{res.content}
+ description:
{res.content}
{res.extra}
+ }) + } else if (res.extra) { + notification.open({ + key: 'new_version', + duration: 0, + top: 88, + message: `已是最新版本`, + icon: , + btn: , + description:
{res.extra}
}) } })