From b883ae5d7d46fc7a3503236f16a250c2264ea7c7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 29 九月 2022 17:45:25 +0800
Subject: [PATCH] 2022-09-29

---
 src/menu/components/share/usercomponent/index.jsx |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/share/usercomponent/index.jsx b/src/menu/components/share/usercomponent/index.jsx
index e10fa99..429e0a8 100644
--- a/src/menu/components/share/usercomponent/index.jsx
+++ b/src/menu/components/share/usercomponent/index.jsx
@@ -1,7 +1,8 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Icon, Modal, notification } from 'antd'
+import { Modal, notification } from 'antd'
+import { UserOutlined } from '@ant-design/icons'
 import html2canvas from 'html2canvas'
 
 import Api from '@/api'
@@ -15,7 +16,7 @@
 
 class UserComponent extends Component {
   static propTpyes = {
-    btnlog: PropTypes.array
+    config: PropTypes.object
   }
 
   state = {
@@ -145,7 +146,8 @@
       document.getElementsByClassName('menu-view')[0].classList.add('saving')
       this.setState({loading: true})
       setTimeout(() => {
-        let template = this.getUserComponent()
+        // let template = this.getUserComponent()
+        let template = fromJS(config).toJS()
         html2canvas(document.getElementById(config.uuid)).then(canvas => {
           let param = {
             Base64Img: canvas.toDataURL('image/png') // 鑾峰彇鐢熸垚鐨勫浘鐗�
@@ -210,7 +212,7 @@
 
     return (
       <div className="user-component-wrap">
-        <Icon type="user" title="鐢熸垚鑷畾涔夌粍浠�" onClick={this.trigger} />
+        <UserOutlined title="鐢熸垚鑷畾涔夌粍浠�" onClick={this.trigger} />
         <Modal
           title="鑷畾涔夌粍浠�"
           visible={visible}

--
Gitblit v1.8.0