瀏覽代碼

:bug: fix SupportCreate.js

zhanghe 6 年之前
父節點
當前提交
b9edb7e4f8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 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字段
         const { product } = this.props;