const { createApp, ref, onMounted, nextTick, onUnmounted, computed, watch, provide } = Vue; import { itemForum } from "../component/item-forum/item-forum.js"; const appSearch = createApp({ setup() { onMounted(() => { const params = getUrlParams(); const id = params.section || ""; if (id) { section.value = id; init(); } section.value = id; // init(); }); return {}; }, }); appSearch.component("item-forum", itemForum); appSearch.mount("#sectionIndex");