Sfoglia il codice sorgente

:bug: fix SupportCreate.js

zhanghe 6 anni fa
parent
commit
b9edb7e4f8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;