mirror of https://github.com/openspug/spug
F 修复兼容性问题
parent
4a6e080149
commit
00797fa29e
|
@ -143,7 +143,7 @@ class Ext1Index extends React.Component {
|
|||
<Steps.Step {...this.getStatus('local', 4)} title="检出后任务"/>
|
||||
<Steps.Step {...this.getStatus('local', 5)} title="执行打包"/>
|
||||
</Steps>}>
|
||||
<OutView outputs={lds.get(store.outputs, 'local.data', [])}/>
|
||||
<OutView id="local"/>
|
||||
</Collapse.Panel>
|
||||
</Collapse>
|
||||
|
||||
|
@ -162,7 +162,7 @@ class Ext1Index extends React.Component {
|
|||
<Steps.Step {...this.getStatus(item.id, 4)} title="发布后任务"/>
|
||||
</Steps>
|
||||
</div>}>
|
||||
<OutView outputs={lds.get(store.outputs, `${item.id}.data`, [])}/>
|
||||
<OutView id={item.id}/>
|
||||
</Collapse.Panel>
|
||||
))}
|
||||
</Collapse>
|
||||
|
|
|
@ -4,8 +4,11 @@
|
|||
* Released under the AGPL-3.0 License.
|
||||
*/
|
||||
import React from 'react';
|
||||
import { toJS } from 'mobx';
|
||||
import { observer } from 'mobx-react';
|
||||
import styles from './index.module.css';
|
||||
import store from './store';
|
||||
import lds from 'lodash';
|
||||
|
||||
@observer
|
||||
class OutView extends React.Component {
|
||||
|
@ -19,9 +22,10 @@ class OutView extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const outputs = lds.get(store.outputs, `${this.props.id}.data`, []);
|
||||
return (
|
||||
<pre ref={el => this.el = el} className={styles.ext1Console}>
|
||||
{this.props.outputs}
|
||||
{toJS(outputs)}
|
||||
</pre>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue