mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-20 13:04:33 +00:00
97062480d5
update routes with booking id pramas fixed not found routes fixed count down with real data moved bookings routes into autenticated route
39 lines
793 B
JavaScript
39 lines
793 B
JavaScript
// import axios from 'axios'
|
|
// import Cookies from 'js-cookie'
|
|
// import * as types from '../mutation-types'
|
|
|
|
// // state
|
|
// export const state = {
|
|
// booking: null
|
|
// }
|
|
|
|
// // getters
|
|
// export const getters = {
|
|
// booking: state => state.booking,
|
|
// }
|
|
|
|
// // mutations
|
|
// export const mutations = {
|
|
// [types.FETCH_BOOKING_SUCCESS] (state, { booking }) {
|
|
// state.booking = booking
|
|
// },
|
|
|
|
// [types.FETCH_BOOKING_FAILURE] (state) {
|
|
// state.booking = null
|
|
// },
|
|
|
|
// }
|
|
|
|
// // actions
|
|
// export const actions = {
|
|
// async fetchBooking ({ commit }) {
|
|
// try {
|
|
// const { data } = await axios.get('/api/user')
|
|
|
|
// commit(types.FETCH_BOOKING_SUCCESS, { booking: data })
|
|
// } catch (e) {
|
|
// commit(types.FETCH_BOOKING_FAILURE)
|
|
// }
|
|
// }
|
|
// }
|