You can see the data in observer,vuex, but the length fetched in main.js is 0

I want to fetch the list array in vuex, but after getting it, the length becomes 0

.

clipboard.png

clipboard.png

clipboard.png
.listoberser

clipboard.png

Feb.14,2022

when you don't need List to get, click on whether there is a value in List
and it hasn't been assigned yet when you take a value in main.js.


you can get the value by adding a setTimeout. I don't know why, it should be asynchronous.

Menu