Ref invalidation in Vue component dynamic rendering

Time:2020-11-27

The dynamic reference components are as follows:
Ref invalidation in Vue component dynamic rendering

If this is the case, the method undefined will appear
this.$refs.customcom.nodechange(data);

The right thing to do is to get the index of the ref that is currently invoked and call it again.
this.$refs.customcom[index].nodechange(data);

Recommended Today

Practice of query operation of database table (Experiment 3)

Following the previous two experiments, this experiment is to master the use of select statements for various query operations: single table query, multi table connection and query, nested query, set query, to consolidate the database query operation.Now follow Xiaobian to practice together!Based on the data table (student, course, SC, teacher, TC) created and inserted in […]