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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ebc43c-28bf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ebc43c-28bf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?