mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-06 10:35:06 +08:00
### What problem does this PR solve? Fix (search): Optimize the search page functionality and UI #3221 - Add a search list component - Implement search settings - Optimize search result display - Add related search functionality - Adjust the search input box style - Unify internationalized text ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -486,3 +486,16 @@ export const useSearching = ({
|
||||
onChange,
|
||||
};
|
||||
};
|
||||
|
||||
export const useCheckSettings = (data: ISearchAppDetailProps) => {
|
||||
if (!data) {
|
||||
return {
|
||||
openSetting: false,
|
||||
};
|
||||
}
|
||||
const { search_config, name } = data;
|
||||
const { kb_ids } = search_config;
|
||||
return {
|
||||
openSetting: kb_ids && kb_ids.length && name ? false : true,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user