From a2736da2bd8eda18c0c37bb18e254de49ebbbd68 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 22 May 2016 14:30:22 +0800 Subject: [PATCH] fix new version Modal --- site/component/Footer/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/component/Footer/index.jsx b/site/component/Footer/index.jsx index 5de6b324ae..8f7d7a05fe 100644 --- a/site/component/Footer/index.jsx +++ b/site/component/Footer/index.jsx @@ -28,8 +28,8 @@ export default class Footer extends React.Component { // 大版本发布后全局弹窗提示 // 1. 点击『知道了』之后不再提示 // 2. 超过截止日期后不再提示 - if (localStorage.getItem('infoNewVersionSent') !== 'true' || - new Date().getTime() > new Date('2016/05/22').getTime()) { + if (localStorage.getItem('infoNewVersionSent') !== 'true' && + new Date().getTime() < new Date('2016/05/22').getTime()) { this.infoNewVersion(); } }