Merge branch 'lichang' into lite

This commit is contained in:
TsMask committed 2025-03-13 11:51:40 +08:00
commit 50d3cd72de
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -151,8 +151,11 @@ async function fnGetList(reload: boolean = false) {
if (!reload) {
// 选择第一个
if (tableState.data.length > 0) {
const id = tableState.data[0].id;
fnTableSelectedRowKeys([id]);
const item = tableState.data.find((item: any) => item.status === 1)
if (item) {
const id = item.id;
fnTableSelectedRowKeys([id]);
}
} else {
fnTableSelectedRowKeys(tableState.selectedRowKeys);
}
+1 -1
View File
@@ -838,7 +838,7 @@ onMounted(() => {
if (res.code === RESULT_CODE_SUCCESS) {
if (!res.data.rows.length) {
message.warning({
content: '无可用的自定义指标,请先添加自定义指标',
content: t('common.noData'),
duration: 2,
});
return false;