encountered a problem through vue"s nuxt framework. For example, I have a Home (home page), modules such as module rotation chart, album, recommendation, hotspot, user basic information and so on. We know that each module has data. For example, I use axios to get the data. I use axios to get the data, but I don"t know where to get the data. Should I get the data from the carousel component or the global Home page?
< H2 > the main concern is that < / H2 >- if Http, is called in each module, it seems that there are too many http requests
- if you get data in the page, although there are not many http requests, it is a bit difficult to understand. It seems that something is wrong and troublesome for a component to pass data down. Look for vuex, at night if the data is all in vuex, it seems that the data is a bit big, a picture base64 is very large, even if you don"t store base64, and only store the necessary information, it is also very huge. Especially unlimited drop-down refresh data, always drop down the browser will jam the duck.