The problem of nuxt _id.vue asyncData calling 2 times

  • my code
    insert image description here
    insert image description here
    insert image description here

  • After searching for a long time, I found that it was actually <img :src="item.icon + ''" />a problem. The problem occurred when the item.icon was equal to an empty string, and the problem of concatenating single quotes, just cancel the single quotes.

Guess you like

Origin blog.csdn.net/baidu_19473529/article/details/129301380