mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +01:00
This commit is contained in:
parent
1b5d664456
commit
62c1fbfed7
1 changed files with 5 additions and 1 deletions
|
|
@ -133,7 +133,11 @@ export const image = {
|
|||
image.element.querySelectorAll(".config-assets").forEach(item => {
|
||||
if (type === item.getAttribute("data-type")) {
|
||||
item.classList.remove("fn__none");
|
||||
if (!item.getAttribute("data-init")) {
|
||||
if (type === "remove") {
|
||||
fetchPost("/api/asset/getUnusedAssets", {}, response => {
|
||||
image._renderList(response.data, assetsListElement, "unrefAssets");
|
||||
});
|
||||
} else if (!item.getAttribute("data-init")) {
|
||||
if (type === "removeAV") {
|
||||
fetchPost("/api/av/getUnusedAttributeViews", {}, response => {
|
||||
image._renderList(response.data, avListElement, "unRefAV");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue