fix: reset inputsearch when change mode
This commit is contained in:
parent
4471b47c67
commit
c5a44034f0
1 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue