+ html: `
+
${window.siyuan.languages.about11}
${window.siyuan.languages.about12}
@@ -131,12 +132,13 @@ export const initAbout = () => {
会泽百家 至公天下
${window.siyuan.languages.about1}
+
`,
bindEvent(modelMainElement: HTMLElement) {
const workspaceDirElement = modelMainElement.querySelector("#workspaceDir");
genWorkspace(workspaceDirElement);
const importKeyElement = modelMainElement.querySelector("#importKey");
- modelMainElement.addEventListener("click", (event) => {
+ modelMainElement.firstElementChild.addEventListener("click", (event) => {
let target = event.target as HTMLElement;
while (target && !target.isSameNode(modelMainElement)) {
if (target.id === "authCode") {
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index ae3c71798..5ea7b6786 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -25,6 +25,7 @@ import {onGet} from "../util/onGet";
import {saveScroll} from "../scroll/saveScroll";
import {hideElements} from "../ui/hideElements";
import {confirmDialog} from "../../dialog/confirmDialog";
+import {reloadProtyle} from "../util/reload";
export class Breadcrumb {
public element: HTMLElement;
@@ -314,13 +315,7 @@ export class Breadcrumb {
accelerator: window.siyuan.config.keymap.editor.general.refresh.custom,
label: window.siyuan.languages.refresh,
click: () => {
- fetchPost("/api/filetree/getDoc", {
- id: protyle.block.showAll ? protyle.block.id : protyle.block.rootID,
- mode: 0,
- size: protyle.block.showAll ? Constants.SIZE_GET_MAX : window.siyuan.config.editor.dynamicLoadBlocks,
- }, getResponse => {
- onGet(getResponse, protyle, protyle.block.showAll ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS], saveScroll(protyle, true), true);
- });
+ reloadProtyle(protyle);
}
}).element);
if (!isMobile()) {