优化代码handlerrightCurrentid if thiscurrentRightIndex === id thiscurrentRightIndex = null else thiscurrentRightIndex = id
简化代码:
handlerrightCurrent(id) { this.currentRightIndex = this.currentRightIndex === id ? null : id; },
原文地址: https://www.cveoy.top/t/topic/eE1I 著作权归作者所有。请勿转载和采集!