Фикс окна создания клиента
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user