king
2020-06-19 cd42d41344f0f780e0c0ac0a3625aeb78160f9dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React, {Component} from 'react'
import asyncComponent from '@/utils/asyncComponent'
import './index.scss'
 
const Header = asyncComponent(() => import('@/mob/header'))
const MobCard = asyncComponent(() => import('@/mob/mobcard'))
 
class MobileManage extends Component {
  /**
   * @description 组件销毁,清除state更新
   */
  componentWillUnmount () {
    this.setState = () => {
      return
    }
  }
 
  jumpMenu = (card) => {
    this.props.history.replace('/mobdesign/' + card.uuid + '/' + card.type)
  }
 
  render () {
    return (
      <div className="mobile-manage">
        <Header view="manage" />
        <MobCard jumpMenu={this.jumpMenu}/>
      </div>
    )
  }
}
 
export default MobileManage