export function gettypes(type) { return listdictitems({ code: type }).then((res) => { if (res.code == 200) { let list = res.body; // console.log('list',list); return list; } }) };
组件中:
gettypes('ep_type').then((data) => {console.log('data',data)});//成功
如对本文有疑问, 点击进行留言回复!!
JS 浅拷贝——Shallow copy 在 Canvas 绘图中的应用
网友评论