数据处理

const getdata = await getAccountList(redate as AccountParams).then((item) => {
  return item.items;
});
export const Grouptype: any[] = (() => {
  const data: any[] = [];
  getdata.forEach((res) => {
    return data.push({
      label: res.name,
      value: res.id,
    });
  });
  return data;
})();

  

posted @ 2021-10-18 11:13  zjxgdq  阅读(17)  评论(0编辑  收藏  举报