Browse Source

业务公出时间格式问题处理

dev01 3 days ago
parent
commit
fe46671e25
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/pages/egressDetails/publicContent.jsx

+ 3 - 1
src/pages/egressDetails/publicContent.jsx

@@ -127,9 +127,11 @@ class PublicContent extends Component {
       let rangeEndMinuteVal = dayjs(this.props.dtails.releaseEnds).format("YYYY-MM-DD HH:mm:ss")
       let assistTypeName = ''
       let assistContentTypeName = ''
-      if ([5, 6].indexOf(this.props.dtails.type) > -1 || this.props.dtails.type == 0 && list.length) {
+      if ([5, 6].indexOf(this.props.dtails.type) > -1) {
         rangeStartMinuteVal = dayjs(this.props.dtails.releaseStarts).format("YYYY-MM-DD")
         rangeEndMinuteVal = dayjs(this.props.dtails.releaseEnds).format("YYYY-MM-DD")
+      }
+      if ([5, 6].indexOf(this.props.dtails.type) > -1 || this.props.dtails.type == 0 && list.length) {
         const assistType = this.props.dtails.assistType || ''
         const assistContentType = this.props.dtails.assistContentType || ''