Files
vue-element-plus-admin/src/views/example-demo/example-page/api.ts
2021-10-22 17:11:12 +08:00

18 lines
512 B
TypeScript

import fetch from '@/axios-config'
export const getExampleListApi = ({ params }: any) => {
return fetch({ url: '/example/list2', method: 'get', params })
}
export const delsExampApi = ({ data }: any) => {
return fetch({ url: '/example/delete', method: 'post', data })
}
export const setExampApi = ({ data }: any) => {
return fetch({ url: '/example/save', method: 'post', data })
}
export const getExampDetApi = ({ params }: any) => {
return fetch({ url: '/example/detail', method: 'get', params })
}