pages/tour-product/_location/_type/_slug.vue:523:
asyncData
)
// eslint-disable-next-line nuxt/no-this-in-fetch-data
store.commit('preBooking/setSelectedTourDetail', tour)
return { tour }
} else {
throw new TypeError('Tour not found')
}
},
computed: {
tourPrice() {
const map = {
.nuxt/utils.js:281:
promisify
data = data || {}
resolve(data)
})
})
} else {
promise = fn(context)
}
if (promise && promise instanceof Promise && typeof promise.then === 'function') {
return promise
}
.nuxt/server.js:254:
module.exports../.nuxt/server.js.__webpack_exports__.default
if (!Components.length) {
return render404Page()
}
// Call asyncData & fetch hooks on components matched by the route.
const asyncDatas = await Promise.all(Components.map((Component) => {
const promises = []
// Call asyncData(context)
if (Component.options.asyncData && typeof Component.options.asyncData === 'function') {
const promise = promisify(Component.options.asyncData, app.context)
internal/process/task_queues.js:93:5
processTicksAndRejections