king
2023-09-07 4b467effbc0e3a9199146573c0ceedf404bd07c5
src/menu/components/share/sourcecomponent/index.jsx
@@ -37,7 +37,7 @@
  }
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.state), fromJS(nextState))
    return !is(fromJS(this.state), fromJS(nextState)) || nextProps.type !== this.props.type
  }
  deleteUrl = () => {
@@ -78,7 +78,7 @@
          <DeleteOutlined title="删除文件" onClick={this.deleteUrl}/>
        </div> : null}
        {url && type !== 'video' && url !== '@icon@' ? <div className="mk-source-item-info picture">
          <img src={url} alt="" />
          <img src={url.replace(/@mywebsite@\//ig, window.GLOB.baseurl)} alt="" />
          <a target="_blank" rel="noopener noreferrer" href={url}>{name}</a>
          <DeleteOutlined title="删除文件" onClick={this.deleteUrl}/>
        </div> : null}