!80 【轻量级 PR】:参数校验,数据源管理中没有数据时,代码生成列表会发生错误

Merge pull request !80 from ccl/master
This commit is contained in:
lengleng 2024-05-29 08:02:04 +00:00 committed by Gitee
commit 85397aaaa8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -92,7 +92,7 @@ onMounted(() => {
list().then((res) => {
datasourceList.value = res.data;
//
state.queryForm.dsName = datasourceList.value[0].name;
state.queryForm.dsName =datasourceList.value.length>0?datasourceList.value[0].name:state.queryForm.dsName;
getDataList();
});
});