diff --git a/src/routes/app.js b/src/routes/app.js index 658278c8..fcd52ac8 100644 --- a/src/routes/app.js +++ b/src/routes/app.js @@ -1,10 +1,12 @@ /* global window */ +/* global document */ import React from 'react' import NProgress from 'nprogress' import PropTypes from 'prop-types' import pathToRegexp from 'path-to-regexp' import { connect } from 'dva' import { Layout, Loader } from 'components' +import { BackTop } from 'antd' import { classnames, config } from 'utils' import { Helmet } from 'react-helmet' import { withRouter } from 'dva/router' @@ -95,7 +97,8 @@ const App = ({ children, dispatch, app, loading, location }) => { {!isNavbar ? : ''} -
+
+ document.getElementById('mainContainer')} />