Avoid using req.url

This commit is contained in:
Sébastien Chopin 2017-03-24 13:52:15 +01:00
parent 1c3b2c077a
commit 26083a9de0

View File

@ -187,7 +187,7 @@ export default context => {
return _app return _app
} }
<% if (isDev) { %> <% if (isDev) { %>
debug('Data fetching ' + context.req.url + ': ' + (Date.now() - s) + 'ms') debug('Data fetching ' + context.url + ': ' + (Date.now() - s) + 'ms')
<% } %> <% } %>
// datas are the first row of each // datas are the first row of each
context.nuxt.data = res.map((r) => (r[0] || {})) context.nuxt.data = res.map((r) => (r[0] || {}))