Unique opened can control the display of menu sidebar, whether to display only one submenu
We can set it to: unique opened = “true” in the tag
The results are as follows
However, sometimes this will report an error:
The solution is to define a bool type attribute in data, and then bind the attribute to the tag’s unique opened
In this way, the effect is the same, and the problem of error message is solved.