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 (