king
2020-09-14 76427d51a079a5fd1f45bf7188249e7a4647ae05
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
33
34
35
36
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) => {
    let _type = 'mob'
    if (card.type === 'pc') {
      _type = 'pc'
    }
    this.props.history.replace(`/mobdesign/${card.uuid}/${_type}/${card.keiNo}/${card.name}`)
  }
 
  render () {
    return (
      <div className="mobile-manage">
        <Header view="manage" />
        <MobCard jumpMenu={this.jumpMenu}/>
      </div>
    )
  }
}
 
export default MobileManage