Фикс окна создания клиента

This commit is contained in:
megavrilinvv
2022-11-18 16:40:01 +03:00
parent ace6b2ec75
commit 9b2885c594
5 changed files with 31 additions and 5 deletions

View File

@@ -13,7 +13,7 @@
:client="client",
:fetch-data-clients="fetchDataClients",
:current-year="currentYear"
)
)
</template>
<script>
@@ -35,6 +35,7 @@ export default {
props: {
openForm: Function,
currentYear: Number,
isOpenForm: Boolean,
},
data() {
@@ -74,6 +75,17 @@ export default {
}
},
},
watch: {
isOpenForm: {
immediate: true,
handler(newValue) {
if (newValue === false) {
console.log("work");
this.fetchDataClients();
}
},
},
},
mounted() {
this.fetchDataClients();
},