Vue 代码优化:使用解构赋值简化工作计划数据处理
success := res => { const { summary, plan, fileList } = res; this.workPlanDetail = { ...res }; this.thisWeekSummary = { value: summary, cursor: summary.length }; this.nextWeekPlan = { value: plan, cursor: plan.length }; this.fileArray = fileList || []; }
原文地址: https://www.cveoy.top/t/topic/mwWo 著作权归作者所有。请勿转载和采集!