Skip to content

Commit 4cb8338

Browse files
committed
refactor: widget click jump
1 parent cc2edb5 commit 4cb8338

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

frontend/src/app/pages/DashBoardPage/actions/widgetAction.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ export const widgetClickJumpAction =
131131
return;
132132
}
133133
const rowDataValue = getValueByRowData(params.data, jumpFieldName);
134-
135-
if (!rowDataValue) {
136-
console.warn('rowDataValue for jumpValue:', rowDataValue);
137-
return;
138-
}
134+
console.warn(' jumpValue:', rowDataValue);
135+
console.warn('rowData', params.data?.rowData);
136+
console.warn(`rowData[${jumpFieldName}]:${rowDataValue} `);
139137
if (targetType === 'URL') {
140138
// jump url
141139
let jumpUrl;

0 commit comments

Comments
 (0)