now refresh method is exposed

This commit is contained in:
Geriano
2022-07-31 09:56:18 +07:00
parent eb83a66383
commit fae073a38c

View File

@@ -103,6 +103,10 @@ const rounded = () => {
links && links.lastElementChild?.classList.add('rounded-r-md')
}
defineExpose({
refresh: fetch,
})
onMounted(fetch)
onMounted(() => config.sticky && createFloatingTh())
onMounted(() => inherit())