ssr没有把渲染的内容放进html中
#7348
const { html, rootContainer, error } = await render({
path: req.url,
mountElementId: 'root',
getInitialPropsCtx: {
categories: await this.getData(),
},
});上面 |
Answered by
ilp64
Sep 17, 2021
Replies: 3 comments 1 reply
|
已解决,root节点不能放内容 |
1 reply
Answer selected by
ilp64
|
您好,我想请教一下,您有遇到ssr打包后预取的数据没在root节点里头的问题嘛? |
0 replies
|
你好,请问一下怎么解决的 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已解决,root节点不能放内容