数据处理
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; })();
本文来自博客园,作者:zjxgdq,转载请注明原文链接:https://www.cnblogs.com/zjxzhj/p/15419756.html