- the page has been rendered after calling the method in actions to get the data asynchronously. And reported an error.
isn't it normal that data from asynchronous requests is slower than page rendering? Your mistake here is that the compatibility of the code is not good enough. When reading the properties of an object (object,array,function, etc.), you need to judge whether the data type of the object is correct
you can use v-if to hide the banner first, and then display the data after the request, so that there will be no problem.
add a judgment to banner [0] .data.baked to determine whether it exists or not.
you are not recommended to write this way, you can write vshow = "banner", and then assign a value to banner after getting the data. In short, try not to use unknown data.
Previous: Installation depends on the Times wrong?
how do I ensure that only the amount can be entered in the input for mobile vue projects? Including numbers and decimal points. It is found that if you adjust type= tel , there are only numbers but no decimal point, and type= number has other symbo...
list data formats first [{username: "1", content: "2", dataTime: 1534128070979},{username: "11", content: "22", dataTime: 1534128070979}] get the data from vuex and render it in a loop. DataTime is a timestamp,...
scrollLeft in vue project can only be obtained through click event. It is invalid to try through refs.xxx.click (). ...
for SPA pages, the traditional multi-page application process is as follows: enter the URL, send the url corresponding to the url, to a different controller, through regular matching, and then return the data to the front end at the back end. so for SPA...
what I want to make is that is expected to arrive at the store with a fixed time of two hours, time period can be selected by yourself, after selection, there is a yellow horizontal line to select these two time periods, can you tell me how to do...