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

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2021-06-30
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-01
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案