About the problem that the elementui event is triggered many times and the interface is called many times

for example, there is a form page with a drop-down box in elementui. This drop-down box has a change event. When I click on the page to modify, I set a value for the drop-down box, which triggers the change event and executes the logic in the change method. I don"t want to trigger any events when I click on the modify page to set up content on the page, how to do

Feb.12,2022

just actually tested, when editing the form, for example:

                    <el-form-item label="" class="" prop="rtype">
                        <el-select v-model="form.rtype" placeholder="" style="width: 100%" filterable @change="testChange">
                            <el-option
                                v-for="item in rtypeOptions"
                                :key="item.id"
                                :label="item.title"
                                :value="item.id">
                            </el-option>
                        </el-select>
                    </el-form-item>

setting an initial value for form.rtype does not trigger @ change= "testChange"


late solution, elementui official select provides a visible-change event, use it with change to make a switch

Menu