From b2f5f89aa592493aa73073c917e50b55e618b8f7 Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Thu, 12 Oct 2017 17:01:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0chrome=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/Application.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/Application.js b/client/Application.js index ba149163..0b0674d1 100755 --- a/client/Application.js +++ b/client/Application.js @@ -4,6 +4,8 @@ import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Route, BrowserRouter as Router } from 'react-router-dom'; import { Home, Group, Project, Follows, AddProject, Login } from './containers/index'; +import { Alert } from 'antd'; +import { Link } from 'react-router-dom' import User from './containers/User/User.js'; import Header from './components/Header/Header'; import Footer from './components/Footer/Footer'; @@ -14,6 +16,14 @@ import { requireAuthentication } from './components/AuthenticatedComponent'; const LOADING_STATUS = 0; +const alertContent = () => { + const ua = window.navigator.userAgent, + isChrome = ua.indexOf("Chrome") && window.chrome; + if (!isChrome) { + return + } +} + @connect( state => { return { @@ -59,6 +69,7 @@ export default class App extends Component { }}>
+ {alertContent()} {this.props.loginState !== 1 ?
: null}