From 8c297dd2050457eda475c4e9c1b44304e6577d1b Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 12 Jul 2021 15:34:13 +0800 Subject: [PATCH] improve update --- 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 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}
}) } })