From fdfa7d811c317d54f53b8fe6d3cdaaa3a500c8fa Mon Sep 17 00:00:00 2001 From: vapao Date: Sat, 10 Jul 2021 19:29:20 +0800 Subject: [PATCH] fix issues --- spug_web/src/pages/system/setting/About.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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}
}) } })