mirror of https://gitee.com/answerdev/answer.git
fix(QueryGroup): Correct handling of the `QueryGroup` click event
This commit is contained in:
parent
e8afba56f5
commit
bf06c1308c
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue