This commit is contained in:
Vanessa 2023-07-06 22:48:37 +08:00
parent a78c853d8d
commit cd6d1533ca
3 changed files with 14 additions and 14 deletions

View file

@ -151,7 +151,7 @@ const getLoginHTML = (deactivate = false) => {
</div>
<div class="fn__hr--b"></div>
<button id="login2" class="b3-button fn__block">${deactivate ? window.siyuan.languages.deactivateUser : window.siyuan.languages.login}</button>
</div>`
</div>`;
};
const afterLogin = (response: IWebSocketData, deactive = false) => {
@ -176,7 +176,7 @@ const afterLogin = (response: IWebSocketData, deactive = false) => {
processSync();
});
}
}
};
const bindLoginEvent = (modelMainElement: HTMLElement, deactive = false) => {
const agreeLoginElement = modelMainElement.querySelector("#agreeLogin") as HTMLInputElement;
@ -252,7 +252,7 @@ const bindLoginEvent = (modelMainElement: HTMLElement, deactive = false) => {
afterLogin(faResponse, deactive);
});
});
}
};
export const login = () => {
openModel({