king
2023-04-06 04a9e254f765ccea77dad02574a8c6fc45ddafb8
src/menu/components/share/pastecomponent/index.jsx
@@ -7,7 +7,7 @@
import Utils from '@/utils/utils.js'
import MKEmitter from '@/utils/events.js'
import asyncComponent from '@/utils/asyncComponent'
import './index.scss'
// import './index.scss'
const PasteForm = asyncComponent(() => import('@/templates/zshare/pasteform'))
@@ -19,10 +19,6 @@
  state = {
    visible: false
  }
  handleMenuClick = () => {
    this.setState({visible: true})
  }
  resetconfig = (item, config) => {
@@ -116,9 +112,14 @@
  pasteSubmit = () => {
    const { options } = this.props
    this.pasteFormRef.handleConfirm().then(res => {
      if (!options.includes(res.copyType)) {
        notification.warning({ top: 92, message: '配置信息格式错误!', duration: 5 })
        return
      }
      if (!this.props.config) {
        this.props.updateConfig(res)
        this.setState({visible: false})
        return
      }
@@ -181,7 +182,7 @@
        })
      }
      this.props.updateConfig(config)
      this.props.updateConfig(config, type)
      this.setState({visible: false})
      notification.success({