From 2eaada6f6f71abfc90ccaeb6e3c471e42ae427da Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 21 十二月 2021 18:09:29 +0800
Subject: [PATCH] 2021-12-21

---
 src/tabviews/iframe/index.jsx |   26 ++------------------------
 1 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/src/tabviews/iframe/index.jsx b/src/tabviews/iframe/index.jsx
index fddf2a7..c1186d4 100644
--- a/src/tabviews/iframe/index.jsx
+++ b/src/tabviews/iframe/index.jsx
@@ -1,6 +1,5 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Button, message } from 'antd'
 import MKEmitter from '@/utils/events.js'
 
 class Iframe extends Component {
@@ -12,8 +11,7 @@
   }
 
   state = {
-    visible: true,
-    debug: sessionStorage.getItem('debug') === 'true'
+    visible: true
   }
 
   componentDidMount () {
@@ -40,31 +38,11 @@
     })
   }
 
-  copyMenuNo = (e) => {
-    const { MenuNo } = this.props
-
-    e.stopPropagation()
-    let oInput = document.createElement('input')
-    oInput.value = MenuNo || ''
-    document.body.appendChild(oInput)
-    oInput.select()
-    document.execCommand('Copy')
-    oInput.className = 'oInput'
-    oInput.style.display = 'none'
-    message.success('澶嶅埗鎴愬姛')
-  }
-
   render () {
-    const { visible, debug } = this.state
+    const { visible } = this.state
     
     return (<div>
       {visible ? <iframe title={this.props.title} src={this.props.url} /> : null}
-      {debug ? <Button
-        icon="copy"
-        shape="circle"
-        className={'main-copy ifr-copy'}
-        onClick={this.copyMenuNo}
-      /> : null}
     </div>)
   }
 }

--
Gitblit v1.8.0