Vanessa 2024-01-10 22:45:39 +08:00
parent 291211bd00
commit 98f2b4dc36
2 changed files with 2 additions and 8 deletions

View file

@ -148,12 +148,8 @@ export abstract class Constants {
public static readonly DIALOG_SYNCCHOOSEDIRECTION = "dialog-syncchoosedirection"; // 选择云端同步方向
public static readonly DIALOG_TRANSFERBLOCKREF = "dialog-transferblockref"; // 转移引用
public static readonly DIALOG_WECHATREMINDER = "dialog-wechatreminder"; // 微信提醒
public static readonly DIALOG_PASSWORD = "dialog-password"; // 导入同步密钥
public static readonly DIALOG_SETPASSWORD = "dialog-setpassword"; // 设置同步密钥
public static readonly DIALOG_BOOTSYNCFAILED = "dialog-bootsyncfailed"; // 启动时同步数据失败
public static readonly DIALOG_KERNELFAULT = "dialog-kernelfault"; // 内核退出
public static readonly DIALOG_STATEEXCEPTED = "dialog-stateexcepted"; // 状态异常
public static readonly DIALOG_ATTR = "dialog-attr"; // 设置块属性
public static readonly DIALOG_SETCUSTOMATTR = "dialog-setcustomattr"; // 设置自定义属性
public static readonly DIALOG_CREATENOTEBOOK = "dialog-createnotebook"; // 创建笔记本

View file

@ -48,7 +48,6 @@ export const onGetnotebookconf = (data: INotebookConf) => {
<div class="fn__hr"></div>
<input class="b3-text-field fn__flex-center fn__block" id="dailyNoteTemplatePath" value="${data.conf.dailyNoteTemplatePath}">
</div></div>`;
let contentElement;
if (isMobile()) {
openModel({
title: titleHTML,
@ -64,9 +63,8 @@ export const onGetnotebookconf = (data: INotebookConf) => {
title: titleHTML,
content: contentHTML
});
contentElement = dialog.element;
contentElement.setAttribute("data-key", Constants.DIALOG_NOTEBOOKCONF);
bindSettingEvent(contentElement, data);
dialog.element.setAttribute("data-key", Constants.DIALOG_NOTEBOOKCONF);
bindSettingEvent(dialog.element, data);
}
};