diff --git a/spug_web/src/pages/system/setting/About.js b/spug_web/src/pages/system/setting/About.js index 7e348e8..5f61cf0 100644 --- a/spug_web/src/pages/system/setting/About.js +++ b/spug_web/src/pages/system/setting/About.js @@ -5,7 +5,7 @@ */ import React from 'react'; import styles from './index.module.css'; -import { Descriptions, Spin, Icon, notification } from "antd"; +import { Descriptions, Spin, Icon, Button, notification } from "antd"; import { observer } from 'mobx-react' import { http, VERSION } from 'libs'; @@ -34,7 +34,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}
}) } })