This commit is contained in:
Viet An
2026-06-04 11:36:43 +07:00
parent 8e2dd06def
commit 2981d9790a
13 changed files with 375 additions and 944 deletions

View File

@@ -7,7 +7,7 @@ const props = defineProps({
variant: Object,
});
const store = useStore();
const { $getdata } = useNuxtApp();
const { $getdata, $snackbar } = useNuxtApp();
const emit = defineEmits(["close"]);
const isLoading = ref(false);
@@ -27,6 +27,7 @@ function toggleSelected(imeiRec) {
function addToCart() {
store.selectedImeis = [...store.selectedImeis, ...selectedImeis.value];
$snackbar(`Thêm ${selectedImeis.value.length} sản phẩm vào giỏ hàng`, "Success");
emit("close");
}