vue-admin-template
vue-admin-template copied to clipboard
SidebarItem.vue 组件中的 onlyOneChild 属性为什么没有放置到data函数的返回值中作为响应式数据?
https://github.com/PanJiaChen/vue-admin-template/blob/4c18a3f47bdb417ad8a25f09910f848cb574dee2/src/layout/components/Sidebar/SidebarItem.vue#L56
为什么不是这么写?
return {
onlyOneChild:null
};
我看 先前的提交版本 5bfadbc118e5a3e4a038549ca6dd94ae5c27cc15 中 是放置到了 return的返回值中,后来就移走了