优化下这段代码 let activeTabKey = optionactiveTabKey thisrolesPowerthisroledailyTabsList0key ifthisrole === 总经理 activeTabKey = 0
const defaultActiveTabKey = this.rolesPower[this.role].dailyTabsList[0].key; const activeTabKey = option.activeTabKey || defaultActiveTabKey; if(this.role === '总经理'){ activeTabKey = 0; }
原文地址: https://www.cveoy.top/t/topic/biiR 著作权归作者所有。请勿转载和采集!