Explorar el Código

:bug: fix SupportCreate.js

zhanghe hace 6 años
padre
commit
b9edb7e4f8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;