From 2ef2e5a5c66ae5cbcd393dfefae139d14ed89c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BD=A6=E6=B0=91?= Date: Wed, 5 Dec 2018 22:02:02 +0800 Subject: [PATCH] fix: closes #362 --- .../pages/ServiceManagement/ServiceDetail/InstanceTable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/InstanceTable.js b/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/InstanceTable.js index d743ded3d..9c7dfc77d 100644 --- a/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/InstanceTable.js +++ b/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/InstanceTable.js @@ -74,14 +74,14 @@ class InstanceTable extends React.Component { switchState(index, record) { const { instance } = this.state; - const { ip, port, weight, enabled } = record; + const { ip, port, weight, enabled, metadata } = record; const { clusterName, serviceName } = this.props; const newVal = Object.assign({}, instance); newVal.list[index].enabled = !enabled; request({ method: 'POST', url: 'v1/ns/instance/update', - data: { serviceName, clusterName, ip, port, weight, enable: !enabled }, + data: { serviceName, clusterName, ip, port, weight, enable: !enabled, metadata }, dataType: 'text', beforeSend: () => this.openLoading(), success: () => this.setState({ instance: newVal }),