diff --git a/api-test/frontend/src/business/definition/components/ApiConfig.vue b/api-test/frontend/src/business/definition/components/ApiConfig.vue
index c7338c13cf..4b7414af2c 100644
--- a/api-test/frontend/src/business/definition/components/ApiConfig.vue
+++ b/api-test/frontend/src/business/definition/components/ApiConfig.vue
@@ -362,7 +362,9 @@ export default {
if (data.response) {
this.parseResponseStructureDefaultKeyValue(data.response);
}
+ this.setProtocolBtn(true);
updateDefinition(this.reqUrl, null, bodyFiles, data).then((response) => {
+ this.setProtocolBtn(false);
this.$success(this.$t('commons.save_success'));
this.reqUrl = '/api/definition/update';
this.currentApi.isCopy = false;
@@ -379,6 +381,22 @@ export default {
this.responseCount = 0;
this.count = 0;
},
+ setProtocolBtn(disable) {
+ switch (this.currentProtocol) {
+ case Request.TYPES.SQL:
+ this.$refs.sqlApi.disableSaveBtn = disable;
+ break;
+ case Request.TYPES.DUBBO:
+ this.$refs.dubboApi.disableSaveBtn = disable;
+ break;
+ case Request.TYPES.TCP:
+ this.$refs.tcpApi.disableSaveBtn = disable;
+ break;
+ default:
+ this.$refs.httpApi.disableSaveBtn = disable;
+ break;
+ }
+ },
parseResponseStructureDefaultKeyValue(response) {
if (response.headers && response.headers.length === 1) {
let kv = response.headers[0];
diff --git a/api-test/frontend/src/business/definition/components/complete/EditCompleteDubboApi.vue b/api-test/frontend/src/business/definition/components/complete/EditCompleteDubboApi.vue
index 5e336b0d40..77659d3132 100644
--- a/api-test/frontend/src/business/definition/components/complete/EditCompleteDubboApi.vue
+++ b/api-test/frontend/src/business/definition/components/complete/EditCompleteDubboApi.vue
@@ -46,7 +46,7 @@
@checkout="checkout"
@create="create"
@del="del"/>
-
-
-