fix: clear plugin list container before rendering to prevent duplicate cards

This commit is contained in:
lly835 2026-02-26 00:48:20 +08:00
parent f6c9881926
commit f44222bf61

View file

@ -63,6 +63,8 @@ function renderPluginsList() {
const emptyEl = document.getElementById('pluginsEmpty');
if (!listEl) return;
listEl.innerHTML = '';
if (pluginsList.length === 0) {
if (emptyEl) emptyEl.style.display = 'flex';