mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 06:02:33 +01:00
🚨
This commit is contained in:
parent
a78c853d8d
commit
cd6d1533ca
3 changed files with 14 additions and 14 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue