yee 7 years ago
parent
commit
a0ed05f6ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/component/manageCenter/idea/news/news.jsx

+ 2 - 2
js/component/manageCenter/idea/news/news.jsx

@@ -33,7 +33,7 @@ const Avatar = React.createClass({
                 name={this.props.name}
                 showUploadList={false}
                 action={globalConfig.context + "/api/admin/news/upload"}
-                data={{ 'sign': this.props.sign }}
+                data={{ 'sign':'news_title_picture' }}
                 beforeUpload={beforeUpload}
                 onChange={this.handleChange} >
                 {
@@ -417,7 +417,7 @@ const News = React.createClass({
                             <div className="modal-box" style={{ position: 'absolute', right: '0', width: '480px' }}>
                                 <span className="modal-box-title">标题图片</span>
                                 <div className="modal-box-detail clearfix" style={{ width: '360px' }}>
-                                    <Avatar sign={'news'} visible={this.state.visible}
+                                    <Avatar sign={'news_title_picture'} visible={this.state.visible}
                                         imageUrl={this.state.RowData.titleImg ? (globalConfig.avatarHost + "/upload" + this.state.RowData.titleImg) : null}
                                         urlData={(url) => { this.state.RowData.titleImg = url }} />
                                 </div>