mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-16 13:45:29 +01:00
✨ 数据仓库支持云端备份 https://github.com/siyuan-note/siyuan/issues/5336
This commit is contained in:
parent
9350d5d224
commit
4bfe4490a7
5 changed files with 41 additions and 21 deletions
|
|
@ -114,13 +114,13 @@ const renderRepo = (element: Element, currentPage: number) => {
|
|||
} else {
|
||||
previousElement.setAttribute("disabled", "disabled");
|
||||
}
|
||||
fetchPost("/api/repo/getRepoIndexLogs", {page: currentPage}, (response) => {
|
||||
fetchPost("/api/repo/getRepoSnapshots", {page: currentPage}, (response) => {
|
||||
if (currentPage < response.data.pageCount) {
|
||||
nextElement.removeAttribute("disabled");
|
||||
} else {
|
||||
nextElement.setAttribute("disabled", "disabled");
|
||||
}
|
||||
if (response.data.logs.length === 0) {
|
||||
if (response.data.snapshots.length === 0) {
|
||||
element.lastElementChild.innerHTML = `<li class="b3-list--empty">${window.siyuan.languages.emptyContent}</li>`;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue