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)});//成功

内容来源于网络如有侵权请私信删除
你还没有登录,请先登录注册
  • 还没有人评论,欢迎说说您的想法!