vue接口保存赋值问题

怎么才能将上面的值赋值给下面呢?比较麻烦,详细的数据结构可见图片

img


defaultTheme.forEach((dt) => {
   dt.detailList.forEach((dl) => {
    dl.attrValue = dt.backgroundCorlor;
  });
});

? 程序员就是for循环也能解决吧