F 修复兼容性问题

pull/146/head
vapao 2020-07-05 12:24:30 +08:00
parent 4a6e080149
commit 00797fa29e
2 changed files with 7 additions and 3 deletions

View File

@ -143,7 +143,7 @@ class Ext1Index extends React.Component {
<Steps.Step {...this.getStatus('local', 4)} title="检出后任务"/> <Steps.Step {...this.getStatus('local', 4)} title="检出后任务"/>
<Steps.Step {...this.getStatus('local', 5)} title="执行打包"/> <Steps.Step {...this.getStatus('local', 5)} title="执行打包"/>
</Steps>}> </Steps>}>
<OutView outputs={lds.get(store.outputs, 'local.data', [])}/> <OutView id="local"/>
</Collapse.Panel> </Collapse.Panel>
</Collapse> </Collapse>
@ -162,7 +162,7 @@ class Ext1Index extends React.Component {
<Steps.Step {...this.getStatus(item.id, 4)} title="发布后任务"/> <Steps.Step {...this.getStatus(item.id, 4)} title="发布后任务"/>
</Steps> </Steps>
</div>}> </div>}>
<OutView outputs={lds.get(store.outputs, `${item.id}.data`, [])}/> <OutView id={item.id}/>
</Collapse.Panel> </Collapse.Panel>
))} ))}
</Collapse> </Collapse>

View File

@ -4,8 +4,11 @@
* Released under the AGPL-3.0 License. * Released under the AGPL-3.0 License.
*/ */
import React from 'react'; import React from 'react';
import { toJS } from 'mobx';
import { observer } from 'mobx-react'; import { observer } from 'mobx-react';
import styles from './index.module.css'; import styles from './index.module.css';
import store from './store';
import lds from 'lodash';
@observer @observer
class OutView extends React.Component { class OutView extends React.Component {
@ -19,9 +22,10 @@ class OutView extends React.Component {
} }
render() { render() {
const outputs = lds.get(store.outputs, `${this.props.id}.data`, []);
return ( return (
<pre ref={el => this.el = el} className={styles.ext1Console}> <pre ref={el => this.el = el} className={styles.ext1Console}>
{this.props.outputs} {toJS(outputs)}
</pre> </pre>
) )
} }