diff --git a/lib/siyuan/siYuanApi.ts b/lib/siyuan/siYuanApi.ts index 1dbf59b0..987a2fa5 100644 --- a/lib/siyuan/siYuanApi.ts +++ b/lib/siyuan/siYuanApi.ts @@ -356,7 +356,8 @@ async function getRootBlocks(page: number, pagesize: number, keyword: string) { AND b1.parent_id='' AND ((b1.content LIKE '%${keyword}%') OR (b1.tag LIKE '%${keyword}%')) ORDER BY b1.created DESC LIMIT ${page}, ${pagesize} - )` + ) + ORDER BY b2.created DESC` let data = await sql(stmt) return data } diff --git a/start.sh b/start.sh new file mode 100755 index 00000000..a62134d7 --- /dev/null +++ b/start.sh @@ -0,0 +1,2 @@ +#!/bin/sh +yarn vdev \ No newline at end of file