fix: reset inputsearch when change mode

This commit is contained in:
oat_dev 2024-06-13 11:31:21 +07:00
parent 4471b47c67
commit c5a44034f0

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref } from 'vue';
import { ref, watch } from 'vue';
import AppBox from 'components/app/AppBox.vue';
import AddButton from 'components/AddButton.vue';
import ProductCardComponent from 'src/components/04_product-service/ProductCardComponent.vue';
@ -218,6 +218,8 @@ onMounted(async () => {
await fetchListGroups();
});
watch(productMode, () => (inputSearch.value = ''));
</script>
<template>