| | |
| | | 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 = { |
| | |
| | | |
| | | state = { |
| | | visible: true, |
| | | dict: sessionStorage.getItem('lang') !== 'en-US' ? mzhCN : menUS, |
| | | debug: sessionStorage.getItem('debug') === 'true' |
| | | } |
| | | |
| | |
| | | document.execCommand('Copy') |
| | | oInput.className = 'oInput' |
| | | oInput.style.display = 'none' |
| | | message.success(this.state.dict['main.copy.success']) |
| | | message.success('复制成功') |
| | | } |
| | | |
| | | render () { |