king
2021-08-31 72419e2f826031a158173f46d723a672064e37cd
src/tabviews/home/index.jsx
@@ -24,6 +24,11 @@
  componentDidMount () {
    this.loadHomeConfig()
    if (this.props.permMenus.length > 0 && JSON.stringify(this.props.permAction) !== '{}') {
      this.setState({
        waiting: false
      })
    }
  }
  UNSAFE_componentWillReceiveProps (nextProps) {
@@ -73,7 +78,7 @@
    if (loading || waiting) {
      return (<div className="home-loading-view" style={{background: background}}><Spin className="home-box-spin" size="large" /></div>)
    } else if (view === 'custom') {
      return (<CustomPage MenuID={this.props.MenuID}/>)
      return (<CustomPage MenuID={this.props.MenuID} MenuName="首页"/>)
    } else {
      return (<DefaultHome />)
    }