Merge pull request #951 from loadchange/hotfix_service_api

Fix: delete service add group name
This commit is contained in:
Fury Zhu 2019-03-22 16:37:32 +08:00 committed by GitHub
commit 7ce768161b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ class ServiceList extends React.Component {
setTimeout(() => this.queryServiceList());
};
deleteService(serviceName) {
deleteService(service) {
const { locale = {} } = this.props;
const { prompt, promptDelete } = locale;
Dialog.confirm({
@ -113,7 +113,7 @@ class ServiceList extends React.Component {
onOk: () => {
request({
method: 'DELETE',
url: `v1/ns/service?serviceName=${serviceName}`,
url: `v1/ns/service?serviceName=${service.name}&groupName=${service.groupName}`,
dataType: 'text',
beforeSend: () => this.openLoading(),
success: res => {
@ -241,7 +241,7 @@ class ServiceList extends React.Component {
<Button
style={{ marginLeft: 12 }}
type="normal"
onClick={() => this.deleteService(record.name)}
onClick={() => this.deleteService(record)}
>
{deleteAction}
</Button>

File diff suppressed because one or more lines are too long