You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The injection of title is set according to demo,but I have some problems:
I have two pages, a detail page and a home page, detail.vue The title option is set in, index.vue The title option is not set. When I use router link to jump from the details page to the first page, the title is still the title of the details page, instead of the default title.
although server.js the default title attribute is set for the context object in, like this:
but the client rendering does not go server.js, so my home page title is always the title of the details page.
I don't want to set the title option on every Vue page
That's what I do:
In client- entry.js globalinjection beforeRouteEnter, internal setting title. Title.js only title global injection is performed to the server, like this:
The injection of title is set according to demo,but I have some problems:
I have two pages, a detail page and a home page, detail.vue The title option is set in, index.vue The title option is not set. When I use router link to jump from the details page to the first page, the title is still the title of the details page, instead of the default title.
although
server.js
the default title attribute is set for the context object in, like this:but the client rendering does not go server.js, so my home page title is always the title of the details page.
I don't want to set the title option on every Vue page
That's what I do:
In
client- entry.js
globalinjection beforeRouteEnter, internal setting title.Title.js
only title global injection is performed to the server, like this:I don't think that's a problem. Please have a look is there any problem with this setting?
The text was updated successfully, but these errors were encountered: