fix(接口自动化): 修复部分缺陷

This commit is contained in:
fit2-zhao 2021-01-22 18:42:04 +08:00
parent 5ae9f4dcfe
commit 96ae6250be
2 changed files with 5 additions and 5 deletions

View File

@ -128,13 +128,13 @@
},
close() {
this.visible = false;
let saveVariables = [];
this.variables.forEach(item => {
if (item.name === undefined || item.name === "") {
const index = this.variables.findIndex(d => d.id === item.id);
this.variables.splice(index, 1);
if (item.name && item.name != "") {
saveVariables.push(item);
}
})
this.$emit('setVariables', this.variables);
this.$emit('setVariables', saveVariables);
},
deleteVariable() {
let ids = Array.from(this.selection);

View File

@ -184,7 +184,7 @@
this.$set(item, 'selected', false);
})
}
this.$success(this.$t('schedule.event_success'));
this.$success(this.$t('organization.integration.successful_operation'));
this.refresh();
},