fix: reload on mount
This commit is contained in:
parent
4162d0d374
commit
6f8078d33f
@ -231,12 +231,7 @@ list.value = createResource({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => useDebounceFn(reload, 100)())
|
||||||
useDebounceFn(() => {
|
|
||||||
if (list.value?.data?.data?.length) return
|
|
||||||
list.value.fetch()
|
|
||||||
}, 100)()
|
|
||||||
})
|
|
||||||
|
|
||||||
const isLoading = computed(() => list.value?.loading)
|
const isLoading = computed(() => list.value?.loading)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user