comment remove

This commit is contained in:
2026-04-08 01:58:07 +02:00
parent d15251c808
commit 5f34c79fca

View File

@@ -255,7 +255,7 @@ export const Router = (routes, trans = {}) => {
export const mount = (root, target, props = {}) => { export const mount = (root, target, props = {}) => {
const container = typeof target === 'string' ? document.querySelector(target) : target; const container = typeof target === 'string' ? document.querySelector(target) : target;
container.replaceChildren(); // Limpieza rápida moderna container.replaceChildren();
const el = h(root, props); const el = h(root, props);
container.appendChild(el); container.appendChild(el);
if (el.$on) el.$on(el); if (el.$on) el.$on(el);