diff --git a/src/routes/System/Metadata/AddModal.js b/src/routes/System/Metadata/AddModal.js index 2d1b79e9b..b879b7584 100644 --- a/src/routes/System/Metadata/AddModal.js +++ b/src/routes/System/Metadata/AddModal.js @@ -167,7 +167,7 @@ class AddModal extends Component { )} {/* status */} - {this.props.isShow? + { ( + )} - ) : ''} + )} ) diff --git a/src/routes/System/Metadata/index.js b/src/routes/System/Metadata/index.js index 28f4375d8..dbf7dfa40 100644 --- a/src/routes/System/Metadata/index.js +++ b/src/routes/System/Metadata/index.js @@ -108,14 +108,14 @@ export default class Metadata extends Component { isShow={false} {...user} handleOk={values => { - const { appName, methodName,id, parameterTypes,path,pathDesc, rpcExt, rpcType, serviceName } = values; + const { appName,enabled, methodName,id, parameterTypes,path,pathDesc, rpcExt, rpcType, serviceName } = values; dispatch({ type: "metadata/update", payload: { appName, methodName, parameterTypes, - // enabled, + enabled, pathDesc, id, path,