N
N
nezzard2020-03-06 17:07:46
PHP
nezzard, 2020-03-06 17:07:46

What is the correct way for seo to get data in nuxt?

Good afternoon, tell me please, is it right for SEO in this way to render data in nuxt

<div class="item" v-for="(item, index) in items" :key="index" ></div>


computed: {
    items(){
      return this.$store.state.store.products
    }
},
mounted() {
    this.$store.dispatch('store/getProducts')
}


The question arose for the reason that when loading a block, I see how the data is loaded after the page is loaded.
I don't know if this is good for SEO.
And if you set the download to asyncData, then there is a delay during loading, but then the page is already loaded with data

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2019-07-25
@vishneviy_sad_c

create an empty array A
inside the loop :
create an empty array B
add key => value pairs of your data
to array B assign array B as a new value in A
after the loop you can encode A into json, get what you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question