Skip to content

Commit

Permalink
#419 zk集群更新loading问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
allen8203 committed May 29, 2018
1 parent 8c25de5 commit 97417ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export default {
this.$emit('cluster-info-success');
}, 3000);
})
.catch(() => { this.$http.buildErrorHandler(`${url}请求失败!`); });
.catch(() => { this.$http.buildErrorHandler(`${url}请求失败!`); })
.finally(() => {
this.loading = false;
});
} else {
this.loading = true;
this.$http.put(url, this.clusterInfo).then(() => {
Expand All @@ -67,7 +70,10 @@ export default {
this.$emit('cluster-info-success');
}, 3000);
})
.catch(() => { this.$http.buildErrorHandler(`${url}请求失败!`); });
.catch(() => { this.$http.buildErrorHandler(`${url}请求失败!`); })
.finally(() => {
this.loading = false;
});
}
},
closeDialog() {
Expand Down
4 changes: 4 additions & 0 deletions saturn-console-web/src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,13 @@ form {
}

.table-filter{
height: 36px;
.el-form-item {
margin-bottom: 5px;
}
.operate-form-item {
display: inline;
}
}

.form-tags {
Expand Down

0 comments on commit 97417ad

Please sign in to comment.