problem description
the company is going to develop an e-commerce website, which is developed by java in the background, and the front-end project has always been developed using vue.js, but the single-page mode is not friendly to the search engine, so it is going to use Nuxt.js to do it. There are some questions I would like to ask the leaders
.the environmental background of the problems and what methods you have tried
mode: spa
1. Because spa, cannot have only one interface when using google"s sitemap generation tool, use the @ nuxtjs/sitemap plug-in to generate sitemap.xml to inform the search engine of the pages that can be crawled
2. In the web page in sitemap, use asyncData to call the API before the routing update to return the result
can this method solve the seo problem of spa