This commit is contained in:
Vanessa 2022-07-15 09:56:52 +08:00
parent 6e02c3e930
commit 7fb533fa9d
5 changed files with 11 additions and 11 deletions

View file

@ -219,7 +219,7 @@ ${window.siyuan.languages.account8}`;
});
const activationCodeElement = account.element.querySelector("#activationCode");
activationCodeElement.addEventListener("click", () => {
const activationCodeInput = (activationCodeElement.previousElementSibling as HTMLInputElement)
const activationCodeInput = (activationCodeElement.previousElementSibling as HTMLInputElement);
fetchPost("/api/account/checkActivationcode", {data: activationCodeInput.value}, (response) => {
if (0 !== response.code) {
activationCodeInput.value = "";

View file

@ -302,7 +302,7 @@ export const bazaar = {
url = "/api/bazaar/installBazaarWidget";
}
target.parentElement.insertAdjacentHTML("afterend", "<img data-type=\"img-loading\" style=\"position: absolute;top: 0;left: 0;height: 100%;width: 100%;padding: 48px;box-sizing: border-box;\" src=\"/stage/loading-pure.svg\">");
const name = target.parentElement.getAttribute("data-name")
const name = target.parentElement.getAttribute("data-name");
fetchPost(url, {
repoURL: target.parentElement.getAttribute("data-url"),
packageName: name,