Skip to content

Commit f6f3429

Browse files
committed
fix: bug fix
1 parent 0dba9a1 commit f6f3429

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

frontend/src/views/ds/DatasourceForm.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,15 @@ const save = async (formEl: FormInstance | undefined) => {
274274
}
275275
} else {
276276
requestObj.tables = list
277-
// const a = datasourceApi
278-
// .add(requestObj)
279-
// .then(() => {
280-
// close()
281-
// emit('refresh')
282-
// })
283-
// .finally(() => {
284-
// saveLoading.value = false
285-
// })
277+
datasourceApi
278+
.add(requestObj)
279+
.then(() => {
280+
close()
281+
emit('refresh')
282+
})
283+
.finally(() => {
284+
saveLoading.value = false
285+
})
286286
}
287287
}
288288
})

frontend/src/views/system/model/ModelForm.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ defineExpose({
287287
</span>
288288
</div>
289289

290-
<div v-if="configExpand" class="params-table">
290+
<div
291+
v-if="configExpand"
292+
class="params-table"
293+
:class="!advancedSettingPagination.length && 'bottom-border'"
294+
>
291295
<el-table :data="advancedSettingPagination" style="width: 100%">
292296
<el-table-column prop="key" :label="t('model.parameters')" width="280" />
293297
<el-table-column prop="name" :label="t('model.display_name')" width="280" />
@@ -451,6 +455,10 @@ defineExpose({
451455
border-top: none;
452456
border-bottom: none;
453457
overflow-y: auto;
458+
459+
&.bottom-border {
460+
border-bottom: 1px solid #dee0e3;
461+
}
454462
:deep(.ed-table .ed-table__cell) {
455463
padding: 7px 0;
456464
}

0 commit comments

Comments
 (0)