From 46f79b491173d284a4900d19e7aecf7509481438 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 21 一月 2022 17:21:25 +0800
Subject: [PATCH] 2022-01-21

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

diff --git a/src/tabviews/iframe/index.jsx b/src/tabviews/iframe/index.jsx
index 391c0de..c1186d4 100644
--- a/src/tabviews/iframe/index.jsx
+++ b/src/tabviews/iframe/index.jsx
@@ -1,9 +1,6 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Button, message } from 'antd'
 import MKEmitter from '@/utils/events.js'
-import mzhCN from '@/locales/zh-CN/main.js'
-import menUS from '@/locales/en-US/main.js'
 
 class Iframe extends Component {
   static propTypes = {
@@ -14,9 +11,7 @@
   }
 
   state = {
-    visible: true,
-    dict: sessionStorage.getItem('lang') !== 'en-US' ? mzhCN : menUS,
-    debug: sessionStorage.getItem('debug') === 'true'
+    visible: true
   }
 
   componentDidMount () {
@@ -43,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(this.state.dict['main.copy.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