mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
fix集市计数错误 (#11163)
This commit is contained in:
parent
6b83c5d081
commit
0e15a50196
1 changed files with 1 additions and 1 deletions
|
|
@ -386,7 +386,7 @@ export const bazaar = {
|
||||||
if (["icons", "themes"].includes(bazaarType)) {
|
if (["icons", "themes"].includes(bazaarType)) {
|
||||||
showSwitch = true;
|
showSwitch = true;
|
||||||
}
|
}
|
||||||
const counterElement = contentElement.parentElement.querySelector(".counter");
|
const counterElement = contentElement.previousElementSibling.querySelector(".counter");
|
||||||
if (response.data.packages.length === 0) {
|
if (response.data.packages.length === 0) {
|
||||||
counterElement.classList.add("fn__none");
|
counterElement.classList.add("fn__none");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue