|
|
@@ -5,12 +5,7 @@
|
|
|
|
|
|
import React, { Component } from 'react'
|
|
|
import { connect } from 'react-redux'
|
|
|
-import { clearHomeState } from '../../redux/actions/homeState'
|
|
|
-import { clearMainState } from '../../redux/actions/mainState'
|
|
|
-import { clearReportState } from '../../redux/actions/reportState'
|
|
|
-import { clearDocState } from '../../redux/actions/docState'
|
|
|
-import { clearUserInfo } from '../../redux/actions/userState'
|
|
|
-import { clearListState } from '../../redux/actions/listState'
|
|
|
+import { clearAllRedux } from '../../redux/utils/redux.utils'
|
|
|
|
|
|
class UasEntry extends Component {
|
|
|
|
|
|
@@ -23,12 +18,7 @@ class UasEntry extends Component {
|
|
|
componentDidMount () {
|
|
|
document.title = 'UAS系统'
|
|
|
|
|
|
- clearHomeState()
|
|
|
- clearMainState()
|
|
|
- clearReportState()
|
|
|
- clearDocState()
|
|
|
- clearListState()
|
|
|
- clearUserInfo()
|
|
|
+ clearAllRedux()
|
|
|
|
|
|
this.props.history.replace('/homePage')
|
|
|
}
|