Sign in

简柏林 / thingskit-view · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • thingskit-view
  • src
  • api
  • external
  • common
  • index.ts
  • feat: 新增动态接口功能, Icon组件
    b3bfc357
    ww authored
    2023-03-23 19:06:45 +0800  
    Browse Files »
index.ts 304 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { defHttp } from "@/utils/external/http/axios";
import { DictItem } from "./model";

enum Api {
  GET_DICT = '/dict_item'
}

export const getDictItemByCode = (value: string) => {
  return defHttp.post<DictItem[]>({
    url: `${Api.GET_DICT}/find`,
    params: {
      dictCode: value
    }
  })
}