From c66c7b65432af8cdab430b7ac079a4fd75c3d60f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 10 九月 2021 19:20:58 +0800
Subject: [PATCH] 2021-09-10

---
 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