We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
页面html代码,有数据的地方也全部是 这个
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
https://github.com/lincenying/mmf-blog-vue2-ssr/blob/master/src/pages/frontend-index.vue#L29-L39
https://github.com/lincenying/mmf-blog-vue2-ssr/blob/master/src/entry-server.js#L47-L58
参考上面两次代码
看了老大。我首页走的asyncData方法请求,浏览器中直接输入的url,第一次还是为空,这个怎么解决;另外其他页面也遇到了刷新之后 不执行asyncData这个方法,跪求解答
在asyncData方法里加个console, 看node有没有执行, 也可以在
Promise.all( matchedComponents.map( ({ asyncData }) => { console.log(asyncData) asyncData && asyncData({ store, route: router.currentRoute, cookies: context.cookies, isServer: true, isClient: false }) } ) )
看看打印出什么
No branches or pull requests
页面html代码,有数据的地方也全部是 这个
The text was updated successfully, but these errors were encountered: