Initial commit

This commit is contained in:
Viet An
2026-04-06 13:47:10 +07:00
commit f423d9ab20
439 changed files with 97497 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<script setup>
const props = defineProps({
productId: Number,
});
const { $store } = useNuxtApp();
$store.commit('selectedProductsForHandoverEmail', []);
</script>
<template>
<input
type="checkbox"
:checked="$store.selectedProductsForHandoverEmail.includes(props.productId)"
@change="(e) => {
if (e.target.checked) {
$store.commit(
'selectedProductsForHandoverEmail',
[ ...$store.selectedProductsForHandoverEmail, props.productId],
)
} else {
$store.commit(
'selectedProductsForHandoverEmail',
$store.selectedProductsForHandoverEmail.filter(x => x !== props.productId),
)
}
}"
/>
</template>