The drop-down menu in vue cannot echo the previously selected data





the first drop-down box echoes normally, the second and the third have no data, but I click on the first one to switch, 2 and 3 will have data

Mar.18,2021

does not quite understand your question, but when I often do this kind of three-level linkage, I usually attach an initial value to all three drop-down boxes, such as' Please select', and then hide the last two boxes first, which can effectively avoid wrong operations. Then the first selected value is used as the query condition for the content of the second drop-down box, and after the first valid value is selected, The second drop-down box will show up. According to what you said, if you switch the contents of the first drop-down box, the second and third will successfully call the method, which means that your method is fine, and it may be a matter of time.

Menu