From 2932730fc37744063cc7b3983462b4bb684893d2 Mon Sep 17 00:00:00 2001 From: Viet An Date: Fri, 12 Jun 2026 10:06:13 +0700 Subject: [PATCH] changes --- app/components/SearchBox.vue | 2 +- app/components/common/ProductInfo.vue | 24 ------------------------ app/components/snackbar/SnackBar.vue | 2 +- app/plugins/00-datatable.js | 7 ++++--- app/plugins/01-common.js | 27 +++++++++------------------ 5 files changed, 15 insertions(+), 47 deletions(-) delete mode 100644 app/components/common/ProductInfo.vue diff --git a/app/components/SearchBox.vue b/app/components/SearchBox.vue index 67e3c2a..6b2117a 100644 --- a/app/components/SearchBox.vue +++ b/app/components/SearchBox.vue @@ -191,7 +191,7 @@ const pos = computed(() => { const clearTrigger = ref(0); if (props.vdata) { - orgdata.value = props.vdata; + orgdata.value = $copy(props.vdata); orgdata.value.forEach((v) => (v.search = $nonAccent(v[props.field]))); } if (props.first) { diff --git a/app/components/common/ProductInfo.vue b/app/components/common/ProductInfo.vue deleted file mode 100644 index 41e3afc..0000000 --- a/app/components/common/ProductInfo.vue +++ /dev/null @@ -1,24 +0,0 @@ - - diff --git a/app/components/snackbar/SnackBar.vue b/app/components/snackbar/SnackBar.vue index 84d099e..ddaa34f 100644 --- a/app/components/snackbar/SnackBar.vue +++ b/app/components/snackbar/SnackBar.vue @@ -9,7 +9,7 @@ const props = defineProps({ }); const store = useStore(); -setTimeout(() => store.commit("snackbar", undefined), 3900); +setTimeout(() => store.commit("snackbar", undefined), 2500);