mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-21 05:16:54 +08:00
### What problem does this PR solve? Feat: Put buildSelectOptions to common-util.ts #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
3
web/src/utils/component-util.ts
Normal file
3
web/src/utils/component-util.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function buildSelectOptions(list: Array<string>) {
|
||||
return list.map((x) => ({ label: x, value: x }));
|
||||
}
|
||||
Reference in New Issue
Block a user