소스 검색

:zap: 视频编辑增传rid字段

zhanghe 6 년 전
부모
커밋
87faf22dc3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/routes/Resource/Video/VideoCreate.js

+ 2 - 2
src/routes/Resource/Video/VideoCreate.js

@@ -51,12 +51,12 @@ export default class VideoCreatePage extends PureComponent {
     e.preventDefault();
     this.props.form.validateFieldsAndScroll((err, values) => {
       if (!err) {
-        const { UIParams, Queryers } = this.props.location.state || {};
+        const { UIParams, Queryers, rid } = this.props.location.state || {};
         const matchId = this.isEdit();
         if (matchId) {
           this.props.dispatch({
             type: 'resource/updateVideo',
-            payload: { id: matchId, status: Hotax.STATUS_NORMAL, ...values },
+            payload: { id: matchId, status: Hotax.STATUS_NORMAL, rid, ...values },
             states: { UIParams, Queryers },
           });
           return;