feat: update search memo filter

This commit is contained in:
Steven
2024-05-27 23:25:25 +08:00
parent ba0876a563
commit f0e5a72271
11 changed files with 216 additions and 77 deletions

View File

@ -5,7 +5,7 @@ import { useFilterStore } from "@/store/module";
const useFilterWithUrlParams = () => {
const location = useLocation();
const filterStore = useFilterStore();
const { tag, text } = filterStore.state;
const { tag, text, memoPropertyFilter } = filterStore.state;
useEffect(() => {
const urlParams = new URLSearchParams(location.search);
@ -38,6 +38,7 @@ const useFilterWithUrlParams = () => {
return {
tag,
text,
memoPropertyFilter,
};
};