From c98e45bfac25e9110ad0383faac54a54d98ea9d5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 18 十一月 2021 20:47:04 +0800
Subject: [PATCH] 2021-11-18

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

diff --git a/src/menu/components/share/sourcecomponent/index.jsx b/src/menu/components/share/sourcecomponent/index.jsx
index 569fc8d..a2f45e3 100644
--- a/src/menu/components/share/sourcecomponent/index.jsx
+++ b/src/menu/components/share/sourcecomponent/index.jsx
@@ -68,8 +68,8 @@
           <Radio.Button value="upload" size="small" onClick={() => this.handleChange('upload')}>涓婁紶</Radio.Button>
           <Radio.Button value="system" size="small" onClick={() => this.handleChange('system')}>绯荤粺</Radio.Button>
         </Radio.Group> : null}
-        {url ? <div className="mk-source-item-info">
-          <Icon type="paper-clip" />
+        {url ? <div className={'mk-source-item-info' + (type !== 'video' ? ' picture' : '')}>
+          {type === 'video' ? <Icon type="paper-clip" /> : <img src={url} alt="" />}
           <a target="_blank" rel="noopener noreferrer" href={url}>{name}</a>
           <Icon title="鍒犻櫎鏂囦欢" type="delete" onClick={this.deleteUrl}/>
         </div> : null}

--
Gitblit v1.8.0