How to quickly get the last selected node of each level by element UI tree tree component

want to get the content in the red box quickly

Apr.02,2021

Recursive traversal

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-1e54ff6-452f1.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-1e54ff6-452f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?