import Admin from ‘./Admin‘
import FormCom from ‘./FormCom‘
import One from ‘./One‘
import ButtonCom from ‘./ButtonCom‘
import MenuCom from ‘./MenuCom‘
import StepsCom from ‘./StepsCom‘
import TabsCom from ‘./TabsCom‘
import TableCom from ‘./TableCom‘
import MessageCom from ‘./MessageCom‘
import NotificationCom from ‘./NotificationCom‘
import ProgressCom from ‘./ProgressCom‘
import SpinCom from ‘./SpinCom‘
import BadgeCom from ‘./BadgeCom‘
import React from ‘react‘;
import { notification } from ‘antd‘
import { HashRouter, Route, Switch, Redirect } from ‘react-router-dom‘;
import First from ‘./First‘;
import Login from ‘./Login‘;
import ‘./App.css‘;
class App extends React.Component {
constructor() {
super();
this.openNotificationWithIcon = type => {
notification[type]({
message: ‘Notification Title‘,
description:
‘This is the content of the notification. This is the content of the notification. This is the content of the notification.‘,
});
}
}
clickHandle() {
console.log("clicked!!!");
}
render() {
return (<HashRouter>
<Switch>
<Route exact={true} path="/login" component={Login} /> {/**exact 防止混路由混合 如:输入127.xx.xx.xx/home 中有/login页面*/}
<Route path="/home" component={First} />
<Redirect to=‘/login‘ />
</Switch>
</HashRouter>)
}
}
export default App;