king
2023-04-07 20185ab64a165df51515d9fa1c9b12a7a8c55f59
src/components/paste/index.jsx
@@ -1,6 +1,7 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { Icon, Modal, notification } from 'antd'
import { Modal, notification } from 'antd'
import { SnippetsOutlined } from '@ant-design/icons'
import asyncComponent from '@/utils/asyncComponent'
@@ -14,10 +15,6 @@
  state = {
    visible: false
  }
  handleMenuClick = () => {
    this.setState({visible: true})
  }
  pasteSubmit = () => {
@@ -36,10 +33,10 @@
          })
          this.setState({visible: false})
        } else {
          notification.success({
          notification.warning({
            top: 92,
            message: result.message,
            duration: 2
            duration: 5
          })
        }
      })
@@ -51,7 +48,7 @@
    return (
      <div style={{display: 'inline-block'}}>
        <Icon type="snippets" style={{color: 'purple'}} onClick={() => {this.setState({visible: true})}} />
        <SnippetsOutlined style={{color: 'purple'}} onClick={() => {this.setState({visible: true})}} />
        <Modal
          title="粘贴"
          visible={visible}