Skip to content

Commit 24a70f0

Browse files
committed
🐛 fix: 如果超过 64 个文档,则会显示 undefined
1 parent 43230b5 commit 24a70f0

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.12.1
2+
3+
- 🐛 fix: 如果超过 64 个文档,则会显示 undefined
4+
15
## v0.12.0
26

37
- ✨ feat: 增加了大纲跳转功能

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sy-docs-flow",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"type": "module",
55
"description": "",
66
"repository": "",

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "sy-docs-flow",
33
"author": "frostime",
44
"url": "https://github.com/frostime/sy-docs-flow",
5-
"version": "0.12.0",
5+
"version": "0.12.1",
66
"minAppVersion": "3.0.12",
77
"backends": [
88
"all"

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export async function getBlockByID(blockId: string): Promise<Block> {
371371

372372
export async function getBlocksByIds(...ids: BlockId[]) {
373373
let idList = ids.map((id) => `"${id}"`);
374-
let sqlCode = `select * from blocks where id in (${idList.join(",")})`;
374+
let sqlCode = `select * from blocks where id in (${idList.join(",")}) limit 999`;
375375
let data = await sql(sqlCode);
376376
return data;
377377
}

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { setting } from "@/settings";
1616

1717
import { TabHub, FullScreen } from "@/display";
1818

19-
import { changelog } from "sy-plugin-changelog";
19+
// import { changelog } from "sy-plugin-changelog";
2020

2121
const frontEnd = getFrontend();
2222
const isMobile = frontEnd === "mobile" || frontEnd === "browser-mobile";
@@ -134,10 +134,10 @@ export default class DocsFlowPlugin extends Plugin {
134134
//@ts-ignore
135135
this.eventBus.on('SQL', this.eventSQL.bind(this));
136136

137-
changelog(this, 'i18n/CHANGELOG.md').then((ans) => {
138-
ans?.Dialog?.setSize({ width: '45rem', height: '27rem' });
139-
ans?.Dialog?.setFont('18px');
140-
});
137+
// changelog(this, 'i18n/CHANGELOG.md').then((ans) => {
138+
// ans?.Dialog?.setSize({ width: '45rem', height: '27rem' });
139+
// ans?.Dialog?.setFont('18px');
140+
// });
141141
}
142142

143143
onunload() {

0 commit comments

Comments
 (0)