2019/12/19 knowledge

1. In the case of node or not dom dom node operation for example, there will be bug, because the not yet instantiated dom, dom so to wait for the next time when to render.
Use $ nextTick (() => { }) can solve this problem, as an example, tree node not instantiated, it is necessary to set the default selection, appeared bug.

Guess you like

Origin www.cnblogs.com/vancissell/p/12069226.html