Skip to content

Commit

Permalink
🐛 fix: 如果超过 64 个文档,则会显示 undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Oct 2, 2024
1 parent 43230b5 commit 24a70f0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.12.1

- 🐛 fix: 如果超过 64 个文档,则会显示 undefined

## v0.12.0

- ✨ feat: 增加了大纲跳转功能
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sy-docs-flow",
"version": "0.12.0",
"version": "0.12.1",
"type": "module",
"description": "",
"repository": "",
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sy-docs-flow",
"author": "frostime",
"url": "https://github.com/frostime/sy-docs-flow",
"version": "0.12.0",
"version": "0.12.1",
"minAppVersion": "3.0.12",
"backends": [
"all"
Expand Down
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export async function getBlockByID(blockId: string): Promise<Block> {

export async function getBlocksByIds(...ids: BlockId[]) {
let idList = ids.map((id) => `"${id}"`);
let sqlCode = `select * from blocks where id in (${idList.join(",")})`;
let sqlCode = `select * from blocks where id in (${idList.join(",")}) limit 999`;
let data = await sql(sqlCode);
return data;
}
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { setting } from "@/settings";

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

import { changelog } from "sy-plugin-changelog";
// import { changelog } from "sy-plugin-changelog";

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

changelog(this, 'i18n/CHANGELOG.md').then((ans) => {
ans?.Dialog?.setSize({ width: '45rem', height: '27rem' });
ans?.Dialog?.setFont('18px');
});
// changelog(this, 'i18n/CHANGELOG.md').then((ans) => {
// ans?.Dialog?.setSize({ width: '45rem', height: '27rem' });
// ans?.Dialog?.setFont('18px');
// });
}

onunload() {
Expand Down

0 comments on commit 24a70f0

Please sign in to comment.