mirror of
https://github.com/usememos/memos.git
synced 2025-11-10 17:31:33 +08:00
chore: fix content search
This commit is contained in:
parent
98eb57b370
commit
1894ef161f
1 changed files with 4 additions and 4 deletions
|
|
@ -47,14 +47,14 @@ const Home = () => {
|
||||||
setIsRequesting(true);
|
setIsRequesting(true);
|
||||||
const filters = [`creator == "${user.name}"`, `row_status == "NORMAL"`, `order_by_pinned == true`];
|
const filters = [`creator == "${user.name}"`, `row_status == "NORMAL"`, `order_by_pinned == true`];
|
||||||
const contentSearch: string[] = [];
|
const contentSearch: string[] = [];
|
||||||
if (filter.tag) {
|
if (filter.text) {
|
||||||
contentSearch.push(JSON.stringify(filter.tag));
|
contentSearch.push(JSON.stringify(filter.text));
|
||||||
}
|
}
|
||||||
if (contentSearch.length > 0) {
|
if (contentSearch.length > 0) {
|
||||||
filters.push(`content_search == [${contentSearch.join(", ")}]`);
|
filters.push(`content_search == [${contentSearch.join(", ")}]`);
|
||||||
}
|
}
|
||||||
if (filter.text) {
|
if (filter.tag) {
|
||||||
filters.push(`tag == "${filter.text}"`);
|
filters.push(`tag == "${filter.tag}"`);
|
||||||
}
|
}
|
||||||
if (filter.memoPropertyFilter) {
|
if (filter.memoPropertyFilter) {
|
||||||
if (filter.memoPropertyFilter.hasLink) {
|
if (filter.memoPropertyFilter.hasLink) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue