fix(QueryGroup): Correct handling of the `QueryGroup` click event

This commit is contained in:
haitaoo 2023-03-15 18:09:07 +08:00
parent e8afba56f5
commit bf06c1308c
1 changed files with 5 additions and 5 deletions

View File

@ -42,13 +42,13 @@ const Index: FC<Props> = ({
const handleClick = (e, type) => {
const str = handleParams(type);
if (pathname) {
if (floppyNavigation.shouldProcessLinkClick(e)) {
e.preventDefault();
if (floppyNavigation.shouldProcessLinkClick(e)) {
e.preventDefault();
if (pathname) {
navigate(`${pathname}${str}`);
} else {
setUrlSearchParams(str);
}
} else {
setUrlSearchParams(str);
}
};