diff --git a/src/dashboard/src/locales/en-US/Node.js b/src/dashboard/src/locales/en-US/Node.js index 515103b87..819908aaa 100644 --- a/src/dashboard/src/locales/en-US/Node.js +++ b/src/dashboard/src/locales/en-US/Node.js @@ -34,8 +34,6 @@ export default { 'app.node.new.nameCheck': 'Please enter node name', 'app.node.new.type': 'Type', 'app.node.new.typeCheck': 'Please select a type', - 'app.node.new.num': 'Number', - 'app.node.new.numCheck': 'Please enter the number of nodes', 'app.node.new.createSuccess': 'Create node succeed', 'app.node.new.createFail': 'Create node failed', 'app.node.new.inputBasic.form.networkType.label': 'Network Type', diff --git a/src/dashboard/src/locales/zh-CN/Node.js b/src/dashboard/src/locales/zh-CN/Node.js index f2a919ba7..c17ba9ac2 100644 --- a/src/dashboard/src/locales/zh-CN/Node.js +++ b/src/dashboard/src/locales/zh-CN/Node.js @@ -33,8 +33,6 @@ export default { 'app.node.new.nameCheck': '请输入名称', 'app.node.new.type': '类型', 'app.node.new.typeCheck': '请请选择类型', - 'app.node.new.num': '数量', - 'app.node.new.numCheck': '请输入数量', 'app.node.new.createSuccess': '创建节点成功', 'app.node.new.createFail': '创建节点失败', 'app.node.new.inputBasic.form.networkType.label': '网络类型', diff --git a/src/dashboard/src/pages/Node/index.js b/src/dashboard/src/pages/Node/index.js index cca334741..fe34c20e9 100644 --- a/src/dashboard/src/pages/Node/index.js +++ b/src/dashboard/src/pages/Node/index.js @@ -14,7 +14,6 @@ import { Form, Input, Select, - InputNumber, Badge, Upload, } from 'antd'; @@ -216,8 +215,7 @@ const CreateNode = props => { }; const onFinish = values => { - const msg = { ...values, num: parseInt(values.num, 10) }; - handleCreate(msg, createCallback); + handleCreate(values, createCallback); }; const formItemLayout = { @@ -296,33 +294,6 @@ const CreateNode = props => { > - - - );