From a09cff714f32c84894b9ece2ddfb8c7ed4db4d96 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 28 二月 2022 18:12:24 +0800
Subject: [PATCH] 2022-02-28

---
 src/menu/components/share/copycomponent/index.jsx |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/share/copycomponent/index.jsx b/src/menu/components/share/copycomponent/index.jsx
index a4c90ed..2ed4914 100644
--- a/src/menu/components/share/copycomponent/index.jsx
+++ b/src/menu/components/share/copycomponent/index.jsx
@@ -1,7 +1,8 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { fromJS } from 'immutable'
-import { Icon, message } from 'antd'
+import { message } from 'antd'
+import { CopyOutlined } from '@ant-design/icons'
 import './index.scss'
 
 class CopyComponent extends Component {
@@ -19,7 +20,7 @@
 
     try {
       _val = window.btoa(window.encodeURIComponent(JSON.stringify(copycard)))
-    } catch {
+    } catch (e) {
       message.warning('澶嶅埗澶辫触锛岃閲嶈瘯锛�')
       _val = ''
     }
@@ -38,7 +39,7 @@
 
   render () {
     return (
-      <Icon type="copy" title="澶嶅埗" style={{color: '#26C281'}} onClick={this.trigger} />
+      <CopyOutlined title="澶嶅埗" style={{color: '#26C281'}} onClick={this.trigger} />
     )
   }
 }

--
Gitblit v1.8.0