I would like to ask how this drop-down selection shows that the default value is the taskBodyName corresponding to the taskBodyId passed in the background (this code can achieve what I want to know)
project is written separately from the front and back ends. The second section of code obtains the valid data of all taskBody tables. I write the back end. Today, when I look at the code at the front end, I don"t understand how this default value comes out.
the front end is written in vue
<div class="form-group">
<label for="taskBodyId"></label>
<div>
<select id="taskBodyId"/>
</div>
</div>
{
id: "taskBodyId",
type: 1,
validate: {required: true},
dataSource: {url: window.homePath + "Admin/Task/TaskBody/findAll"}
},