Vue.js dropdown nested menu (keep parent open when child active)
问题 I'm starting my journey with Vue.js, and stumbled upon some problem. I wanted to create a simple sidebar with dropdown menu, and already got this: new Vue({ el: '#app', data() { return { openedItems: {}, selectedSub: '', userMenu: false, items: [{ icon: './src/assets/img/icons/dashboard.svg', text: 'Element 1', path: '#1' }, { icon: './src/assets/img/icons/orders.svg', text: 'Element 2', path: '#2' }, { icon: './src/assets/img/icons/products.svg', text: 'NestedElement', path: '', children: [{