mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
创建reducer文件
This commit is contained in:
parent
548a6327b8
commit
77ce038cec
@ -1,5 +1,4 @@
|
||||
import React, { Component } from 'react'
|
||||
import './store.js'
|
||||
import Routes from './routes'
|
||||
|
||||
class App extends Component {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import LoginRedux from './containers/Login/Login_redux.js'
|
||||
import LoginRedux from './reducer/Login/Login_redux.js'
|
||||
|
||||
export default {
|
||||
LoginRedux
|
||||
|
@ -1,4 +1,4 @@
|
||||
import '../../styles/Header/Header.scss'
|
||||
import './Header.scss'
|
||||
import React, { Component } from 'react'
|
||||
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@import '../common.scss';
|
||||
@import '../../styles/common.scss';
|
||||
|
||||
/* .header-box.css */
|
||||
.header-box {
|
@ -1,5 +1,5 @@
|
||||
// import { React, Component } from '../../base.js'
|
||||
import '../../styles/Home/Home.scss'
|
||||
import './Home.scss'
|
||||
import React, { Component } from 'react'
|
||||
import { Button, Input, Icon, Checkbox } from 'antd'
|
||||
import Header from '../../components/Header/Header.js'
|
||||
|
@ -1,5 +1,4 @@
|
||||
@import '../common.scss';
|
||||
|
||||
@import '../../styles/common.scss';
|
||||
/* .home-main.css */
|
||||
// .home-main {
|
||||
// display: -webkit-box;
|
@ -1,5 +1,5 @@
|
||||
// import { React, Component } from '../../base.js'
|
||||
import '../../styles/Login/Login.scss'
|
||||
import './Login.scss'
|
||||
import React, { Component } from 'react'
|
||||
import { Button, Input, Icon, Checkbox } from 'antd'
|
||||
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
|
||||
|
@ -1,4 +1,4 @@
|
||||
@import '../common.scss';
|
||||
@import '../../styles/common.scss';
|
||||
|
||||
/* .login-main.css */
|
||||
.login-main {
|
@ -1,28 +0,0 @@
|
||||
import React, { Component } from 'react'
|
||||
import { createStore, combineReducers } from 'redux'
|
||||
import Login from './containers/Login/Login_redux.js'
|
||||
import { Provider, connect } from 'react-redux'
|
||||
|
||||
// const store = createStore(combineReducers({Login}))
|
||||
|
||||
// const increaseAction = { type: 'increase' }
|
||||
|
||||
// function mapStateToProps(state) {
|
||||
// return {
|
||||
// value: 4444,
|
||||
// per: 4444444,
|
||||
// }
|
||||
// }
|
||||
|
||||
// function mapDispatchToProps(dispatch) {
|
||||
// return {
|
||||
// onIncreaseClick: () => dispatch()
|
||||
// }
|
||||
// }
|
||||
|
||||
// const App = connect(
|
||||
// mapStateToProps,
|
||||
// mapDispatchToProps
|
||||
// )(Login)
|
||||
|
||||
// export { store }
|
1
client/styles/public-sass.scss
Normal file
1
client/styles/public-sass.scss
Normal file
@ -0,0 +1 @@
|
||||
$commonUrl: @import '../../styles/common.scss';
|
Loading…
Reference in New Issue
Block a user