Csy817 пре 6 година
родитељ
комит
dbf237697a
1 измењених фајлова са 9 додато и 9 уклоњено
  1. 9 9
      src/pages/my/manage/index.js

+ 9 - 9
src/pages/my/manage/index.js

@@ -14,15 +14,15 @@ class Manage extends Component {
         }
     }
 
-    // componentWillMount() {
-    //     let {location} = this.props
-    //     if (location && location.state) {
-    //         this.props.history.replace({
-    //             pathname: '/my/manage/' + location.state.page,
-    //             state: {}
-    //         })
-    //     }
-    // }
+    componentWillMount() {
+        let {location} = this.props
+        if (location && location.state) {
+            this.props.history.replace({
+                pathname: '/my/manage/' + location.state.page,
+                state: {}
+            })
+        }
+    }
 
     render() {
         return (