Vue.js 代码优化:动态设置活动标签
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/mKeq 著作权归作者所有。请勿转载和采集!