when I set middleware function in the nuxt.config.js
the first time It's called on server side console
and then it's called on browser console when I change the route of page
why???? so that I can't get the right way of cookie... I don't know I should get it by either req.header or client cookie because the first time I can get it from req.header but not on client, and then I can get by client one not the req.header.....
...and why the vuex getter will be called by itself
forgive my poor English..:( so I choose display pics....