Why do you use nuxt.js in vue? the first time the sub-route comes in is normal. As soon as the website is refreshed, it becomes document is not defined.

problem description

I created a child route and then jumped the rotor route. It was good to come in for the first time, but reported document is not defined

404

as soon as it was refreshed.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

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

 ?
Apr.05,2021

because the first jump is only because javascript modifies url, in the browser and does not generate a http request
but as soon as you refresh it, a http request is generated, while document exists only in the browser. The node server does not have the object document


have you solved this problem? I have encountered the same problem recently. It's caused by the plug-in. It hasn't been solved yet


have you solved this problem? I have encountered the same problem recently.

Menu