VUE tree structure recursive method function and custom image backup instructions

 The two parameters passed in are the data to be processed and the value of the first initial node, and children are the child nodes

 

Custom instruction: This is a custom image error backup instruction. This instruction will be executed when the SRC attribute of the image is loaded incorrectly. Put our backup image after this custom instruction. If it is a local image, it needs to be imported using the require attribute. 

Guess you like

Origin blog.csdn.net/m0_71231013/article/details/126115104