forked from github/dataease
fix: API 数据集校验
This commit is contained in:
parent
5710e3b058
commit
67a62ead86
@ -434,7 +434,7 @@
|
||||
|
||||
<el-row v-show="active === 1">
|
||||
<el-form
|
||||
ref="apiItem"
|
||||
ref="apiItemBasicInfo"
|
||||
size="small"
|
||||
:model="apiItem"
|
||||
label-position="top"
|
||||
@ -941,10 +941,8 @@ export default {
|
||||
this.$message.error(i18n.t("datasource.has_repeat_name"));
|
||||
return;
|
||||
}
|
||||
if (!this.apiItem.name || !this.apiItem.url) {
|
||||
return;
|
||||
}
|
||||
this.$refs.apiItem.validate((valid) => {
|
||||
|
||||
this.$refs.apiItemBasicInfo.validate((valid) => {
|
||||
if (valid) {
|
||||
const data = JSON.parse(JSON.stringify(this.apiItem));
|
||||
this.loading = true;
|
||||
@ -977,7 +975,7 @@ export default {
|
||||
},
|
||||
closeEditItem() {
|
||||
this.active = 0;
|
||||
this.$refs.apiItem.clearValidate();
|
||||
this.$refs.apiItemBasicInfo.clearValidate();
|
||||
this.edit_api_item = false;
|
||||
},
|
||||
saveItem() {
|
||||
|
Loading…
Reference in New Issue
Block a user