fix(VnPaginate): not start without data
gitea/salix-front/pipeline/pr-master This commit looks good Details

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(
() => store.data,
(data) => {
if (!mounted.value) return;
emit('onChange', data);
},
{ immediate: true }

View File

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