mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
🚨
This commit is contained in:
parent
1c4718fcb9
commit
67f095c522
7 changed files with 26 additions and 26 deletions
|
|
@ -160,12 +160,12 @@ export const ai = {
|
|||
</div>`;
|
||||
},
|
||||
bindEvent: () => {
|
||||
const togglePassword = ai.element.querySelector('.b3-form__icona-icon[data-action="togglePassword"]')
|
||||
const togglePassword = ai.element.querySelector('.b3-form__icona-icon[data-action="togglePassword"]');
|
||||
togglePassword.addEventListener("click", () => {
|
||||
const isEye = togglePassword.firstElementChild.getAttribute("xlink:href") === "#iconEye";
|
||||
togglePassword.firstElementChild.setAttribute("xlink:href", isEye ? "#iconEyeoff" : "#iconEye");
|
||||
togglePassword.previousElementSibling.setAttribute("type", isEye ? "text" : "password");
|
||||
})
|
||||
});
|
||||
ai.element.querySelectorAll("input, select").forEach((item) => {
|
||||
item.addEventListener("change", () => {
|
||||
fetchPost("/api/setting/setAI", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue