11import React , { Component } from 'react' ;
22import PropTypes from 'prop-types' ;
3- import { Utility , Navbar } from 'components' ;
3+ import { Utility } from 'components' ;
44
55const styles = require ( './scss/Home.scss' ) ;
66
@@ -27,14 +27,13 @@ export default class Home extends Component {
2727 const UrlTitle = Utility . constItem . UrlTitle ;
2828 const __IsGoBackKey = Utility . constItem . KeyGoBack ;
2929 this . context . router . history . listen ( ( location , action ) => {
30- console . log ( action === 'POP' ) ;
3130 Utility . setContent ( __IsGoBackKey , action === 'POP' ) ;
3231 console . log ( 'location is' , location , 'action is' , action ) ;
33- console . log ( '-----------home end---------------' ) ;
3432 const { pathname } = location ;
3533 if ( UrlTitle && UrlTitle [ pathname ] ) {
3634 self . state . UrlTitle = UrlTitle [ pathname ] ;
37- self . __UpdateRender ( ) ;
35+ Utility . setContent ( '__URL_TITLE_INFO_' , UrlTitle [ pathname ] ) ;
36+ // self.__UpdateRender();
3837 }
3938 } ) ;
4039 }
@@ -59,13 +58,17 @@ export default class Home extends Component {
5958 Utility . toPage ( 'userinfo' ) ;
6059 }
6160 render ( ) {
62- const { UrlTitle } = this . state ;
63- const { Title } = UrlTitle || { } ;
61+ // const { UrlTitle } = this.state;
62+ // const { Title } = UrlTitle || {};
63+ // const __Flag = 0;
6464
6565 return (
6666 < div className = { styles . homeCss } >
67- < Navbar Title = { Title } />
67+ { }
6868 </ div >
6969 ) ;
7070 }
7171}
72+ // {
73+ // __Flag === 2 && <Navbar Title={Title} />
74+ // }
0 commit comments