|
@@ -823,7 +823,6 @@ class ArticleManage extends React.Component {
|
|
|
[]
|
|
|
}
|
|
|
>
|
|
|
-
|
|
|
<div style={{ display: "flex" }}>
|
|
|
<Form className="login-form" {...layout} style={{ flex: 1 }}>
|
|
|
<Form.Item label="栏目选择">
|
|
@@ -834,7 +833,7 @@ class ArticleManage extends React.Component {
|
|
|
<Select onChange={(val) => this.handleChangeColumn(val)}>
|
|
|
{
|
|
|
this.state.queryAllColumns && this.state.queryAllColumns.map((item, key) => {
|
|
|
- return <Option value={item.columnName}>{item.columnName}</Option>
|
|
|
+ return <Option key= { this.state.defaultName } value={item.columnName}>{item.columnName}</Option>
|
|
|
})
|
|
|
}
|
|
|
</Select>
|
|
@@ -845,7 +844,7 @@ class ArticleManage extends React.Component {
|
|
|
initialValue: this.state.articleTitle || "",
|
|
|
rules: [{ required: true, message: '请填写标题!' }],
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input key={ this.state.articleTitle }/>
|
|
|
)}
|
|
|
</Form.Item>
|
|
|
<Form.Item label="封面图片">
|
|
@@ -866,7 +865,7 @@ class ArticleManage extends React.Component {
|
|
|
initialValue: this.state.articleEditorId || "",
|
|
|
rules: [{ required: true, message: '请填写作者!' }],
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input key={ this.state.articleEditorId }/>
|
|
|
)}
|
|
|
</Form.Item>
|
|
|
<Form.Item label="虚假阅读量基数">
|
|
@@ -874,7 +873,7 @@ class ArticleManage extends React.Component {
|
|
|
initialValue: this.state.articleCardinalnumber || "",
|
|
|
rules: [{ required: true, pattern: new RegExp(/^-?\d*(\.\d*)?$/, "g"), message: '请输入正确基数类型' }],
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input key={ this.state.articleCardinalnumber }/>
|
|
|
)}
|
|
|
</Form.Item>
|
|
|
<Form.Item label="置顶设置">
|