0
0
Fork 0

fix(VnPaginate): not start without data

This commit is contained in:
Alex Moreno 2024-11-15 08:50:10 +01:00
parent 139861f6cf
commit f2b132db79
2 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ watch(
watch( watch(
() => store.data, () => store.data,
(data) => { (data) => {
if (!mounted.value) return;
emit('onChange', data); emit('onChange', data);
}, },
{ immediate: true } { immediate: true }

View File

@ -69,7 +69,7 @@ function setNotifications(data) {
:default-reset="false" :default-reset="false"
:default-remove="false" :default-remove="false"
:default-save="false" :default-save="false"
@on-fetch="setNotifications" @on-fetch="(data) => data && setNotifications(data)"
search-url="notifications" search-url="notifications"
> >
<template #body> <template #body>