From 9c6795fd3c44e46cf3955fbfd8f8eeca23acb7a9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 08 十月 2022 00:31:51 +0800 Subject: [PATCH] 2022-10-08 --- src/tabviews/subtabtable/index.jsx | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/tabviews/subtabtable/index.jsx b/src/tabviews/subtabtable/index.jsx index 9b576d2..6a11de2 100644 --- a/src/tabviews/subtabtable/index.jsx +++ b/src/tabviews/subtabtable/index.jsx @@ -1,6 +1,5 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import {connect} from 'react-redux' import { is, fromJS } from 'immutable' import { notification, Spin} from 'antd' @@ -61,7 +60,7 @@ * @description 鑾峰彇椤甸潰閰嶇疆淇℃伅 */ async loadconfig () { - const { permAction, Tab } = this.props + const { Tab } = this.props let param = { func: 'sPC_Get_LongParam', @@ -129,7 +128,7 @@ // 鏉冮檺杩囨护 if (!window.GLOB.mkHS) { - config.action = config.action.filter(item => item.hidden !== 'true' && permAction[item.uuid]) + config.action = config.action.filter(item => item.hidden !== 'true' && window.GLOB.mkActions[item.uuid]) } else { config.action = config.action.filter(item => item.hidden !== 'true') } @@ -891,14 +890,4 @@ } } -const mapStateToProps = (state) => { - return { - permAction: state.permAction - } -} - -const mapDispatchToProps = () => { - return {} -} - -export default connect(mapStateToProps, mapDispatchToProps)(SubTabModalTable) \ No newline at end of file +export default SubTabModalTable \ No newline at end of file -- Gitblit v1.8.0