perf: refs #8201 onDataSaved fetch
This commit is contained in:
parent
1ff54d7423
commit
de30725322
|
@ -16,10 +16,6 @@ const companySizes = [
|
||||||
{ id: 'medium', name: t('globals.medium'), size: '6-50' },
|
{ id: 'medium', name: t('globals.medium'), size: '6-50' },
|
||||||
{ id: 'big', name: t('globals.big'), size: '>50' },
|
{ id: 'big', name: t('globals.big'), size: '>50' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const onSave = () => {
|
|
||||||
arrayData.fetch({});
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<FormModel
|
<FormModel
|
||||||
|
@ -28,7 +24,7 @@ const onSave = () => {
|
||||||
model="supplier"
|
model="supplier"
|
||||||
auto-load
|
auto-load
|
||||||
:clear-store-on-unmount="false"
|
:clear-store-on-unmount="false"
|
||||||
@on-data-saved="onSave"
|
@on-data-saved="arrayData.fetch({})"
|
||||||
>
|
>
|
||||||
<template #form="{ data, validate }">
|
<template #form="{ data, validate }">
|
||||||
<VnRow>
|
<VnRow>
|
||||||
|
|
Loading…
Reference in New Issue