king
2021-11-18 c98e45bfac25e9110ad0383faac54a54d98ea9d5
src/menu/components/share/logcomponent/index.jsx
@@ -5,6 +5,7 @@
import zhCN from '@/locales/zh-CN/model.js'
import enUS from '@/locales/en-US/model.js'
import MKEmitter from '@/utils/events.js'
import './index.scss'
const { confirm } = Modal
@@ -16,7 +17,8 @@
  }
  state = {
    dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    appType: sessionStorage.getItem('appType'),
    visible: false,
    data: [],
    columns: [
@@ -68,10 +70,15 @@
  }
  revert = (item) => {
    const { appType } = this.state
    const data = this.state.data.filter(d => d.uuid !== item.uuid)
    this.setState({data})
    this.props.handlelog('revert', data, item)
    if (appType === 'mob' || (appType === 'pc' && item.OpenType !== 'popview')) return
    MKEmitter.emit('thawButtons', item.uuid)
  }
  handleDelete = (item) => {
@@ -99,7 +106,7 @@
    return (
      <div className="btn-log-wrap">
        <Icon type="rollback" onClick={this.trigger} />
        <Icon type="rollback" title="解除冻结" onClick={this.trigger} />
        <Modal
          wrapClassName="popview-modal"
          title="历史记录"