From 00797fa29ebf18e9bc83ceb3fcd1c2e6a66b7606 Mon Sep 17 00:00:00 2001 From: vapao Date: Sun, 5 Jul 2020 12:24:30 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/deploy/do/Ext1Index.js | 4 ++-- spug_web/src/pages/deploy/do/OutView.js | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/spug_web/src/pages/deploy/do/Ext1Index.js b/spug_web/src/pages/deploy/do/Ext1Index.js index 11bf7a1..6b11738 100644 --- a/spug_web/src/pages/deploy/do/Ext1Index.js +++ b/spug_web/src/pages/deploy/do/Ext1Index.js @@ -143,7 +143,7 @@ class Ext1Index extends React.Component { }> - + @@ -162,7 +162,7 @@ class Ext1Index extends React.Component { }> - + ))} diff --git a/spug_web/src/pages/deploy/do/OutView.js b/spug_web/src/pages/deploy/do/OutView.js index ab2f0e5..0d31faa 100644 --- a/spug_web/src/pages/deploy/do/OutView.js +++ b/spug_web/src/pages/deploy/do/OutView.js @@ -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 (
 this.el = el} className={styles.ext1Console}>
-        {this.props.outputs}
+        {toJS(outputs)}
       
) }