'Vue3 Multi Tree view selected

i asked before but got no answer, the only change I want in the treeview coding on the Vuejs official website, I want to apply it as a treeData Array. There is no problem so far, but Example; name: 'My Tree 1', if clicked and then name: 'My Tree 2', If clicked, I want the first clicked My Tree 1 to be closed.

VueJS

Codesandbox



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source