Browse Source

:bug: fix SupportCreate.js

zhanghe 6 years ago
parent
commit
b9edb7e4f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/routes/Product/Support/SupportCreate.js

+ 1 - 1
src/routes/Product/Support/SupportCreate.js

@@ -166,7 +166,7 @@ export default class SupportCreatePage extends Component {
         // 从表单提取基础信息字段
         // 从表单提取基础信息字段
         const { status, title, subTitle, name, ...rest } = values;
         const { status, title, subTitle, name, ...rest } = values;
         const newName = `${title}_${subTitle}`;
         const newName = `${title}_${subTitle}`;
-        const newVals = { newName, title, subTitle, status: boolToStatus(status), ...rest };
+        const newVals = { title, subTitle, name: newName, status: boolToStatus(status), ...rest };
 
 
         // 从props中提取coverUrl、imgList、supportList字段
         // 从props中提取coverUrl、imgList、supportList字段
         const { product } = this.props;
         const { product } = this.props;