When vue is rendered on the server side, does VDOM still exist?

problem description

our company is using the vue ecosystem, and suddenly there is a need to print a web page, so we want to use SSR to render html instead of VDOM, so it is convenient to extract html without relying on the browser to print.

the environmental background of the problems and what methods you have tried

so I transformed the client rendering vue into SSR.
reference tutorial:
1, Link description
2, Link description
3 Link description

what result do you expect? What is the error message actually seen?

expect to return not VDOM but directly rendered HTML

< H2 > result returns js VDOM < / H2 >

clipboard.png

according to the display of the console, I think vue"s VDOM is still rendered in the browser

< H2 > doubt: < / H2 >

is it wrong for me to modify it, or do I misunderstand it? what exactly is server rendering? isn"t it essentially to piece together the html and return it to the browser

?
The SSR scheme of

vue is isomorphic. If the client supports CSR, it will go through the client entrance, that is, initiate an asynchronous request, and then render locally.
you can use curl to try the data of the request response, because curl will not run js, so it will return the SSR result. Or you can use IE, and the document mode is set to IE8 or below, which is the obtained response data and also the SSR result

.
Menu