From b5364600d98c8749caba625ec813d4fe670d0a19 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 16 十二月 2021 17:29:55 +0800 Subject: [PATCH] 2021-12-16 --- src/menu/components/share/logcomponent/index.jsx | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/menu/components/share/logcomponent/index.jsx b/src/menu/components/share/logcomponent/index.jsx index dd2112b..403d3bc 100644 --- a/src/menu/components/share/logcomponent/index.jsx +++ b/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="瑙i櫎鍐荤粨" onClick={this.trigger} /> <Modal wrapClassName="popview-modal" title="鍘嗗彶璁板綍" -- Gitblit v1.8.0