mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 12:58:55 +08:00
!80 【轻量级 PR】:参数校验,数据源管理中没有数据时,代码生成列表会发生错误
Merge pull request !80 from ccl/master
This commit is contained in:
commit
85397aaaa8
@ -92,7 +92,7 @@ onMounted(() => {
|
|||||||
list().then((res) => {
|
list().then((res) => {
|
||||||
datasourceList.value = res.data;
|
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();
|
getDataList();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user