карта ПВЗ
All checks were successful
Deploy / build (push) Successful in 2m21s

This commit is contained in:
alsaze
2025-10-17 17:10:14 +03:00
parent 887ea75e8b
commit 2b8a5e5774
10 changed files with 418 additions and 95 deletions

View File

@@ -1,9 +1,15 @@
import { createSharedComposable } from '@vueuse/core'
import { createSharedComposable, useStorage } from '@vueuse/core'
export const useCheckout = createSharedComposable(() => {
const router = useRouter()
const route = useRoute()
const contacts = useStorage('checkout-contacts', { name: '', surname: '', phone: '', email: '' })
const setContacts = (data: { name: string, surname: string, phone: string, email: string }) => {
contacts.value = data
}
const checkoutSteps = [
{
step: 1,
@@ -41,6 +47,9 @@ export const useCheckout = createSharedComposable(() => {
}
return {
contacts,
setContacts,
checkoutSteps,
currentCheckoutStep,