mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-29 20:19:24 +08:00
feat: display the version and backend service status on the page (#848)
### What problem does this PR solve? #643 feat: display the version and backend service status on the page ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -65,3 +65,10 @@ export const filterOptionsByInput = (
|
||||
input: string,
|
||||
option: { label: string; value: string } | undefined,
|
||||
) => (option?.label ?? '').toLowerCase().includes(input.toLowerCase());
|
||||
|
||||
export const toFixed = (value: unknown, fixed = 2) => {
|
||||
if (typeof value === 'number') {
|
||||
return value.toFixed(fixed);
|
||||
}
|
||||
return value;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user