How does nuxt.js modify the value of title in the asyncdata function?

now the title of the article crawled by the crawler is the title, defined in the head of nuxt.config.js. The title address bar of the current article is displayed normally by rewriting document.title to the title address bar of the current article in the mounted of the article details page.
but when Baidu / Google included this article, the title was still that the title, defined in nuxt.config.js had not been changed back. I just looked at the nuxt document and saw a head method. I changed it, and I haven"t tried whether the search engine is normal or not. But the total feeling should be written in the asyncdata function (the title of the article is also returned in this method)
for guidance! How should we get the search engine to get the page title of the currently included articles

?
Mar.15,2021

asyncData({app}, callback) {
  app.head.title = "new title"
  callback(null, {})
}
Menu