mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
fix集市计数错误 (#11163)
This commit is contained in:
parent
6b83c5d081
commit
0e15a50196
@ -386,7 +386,7 @@ export const bazaar = {
|
||||
if (["icons", "themes"].includes(bazaarType)) {
|
||||
showSwitch = true;
|
||||
}
|
||||
const counterElement = contentElement.parentElement.querySelector(".counter");
|
||||
const counterElement = contentElement.previousElementSibling.querySelector(".counter");
|
||||
if (response.data.packages.length === 0) {
|
||||
counterElement.classList.add("fn__none");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user