mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
18 lines
484 B
TypeScript
18 lines
484 B
TypeScript
![]() |
import axios from "axios";
|
||
|
|
||
|
const getHospitalListUrl = "/api/admin/hospital/getHospitalList"
|
||
|
const FORM_CONTENT_TYPE = 'application/x-www-form-urlencoded'
|
||
|
|
||
|
export const getHospitalList = () => {
|
||
|
return new Promise(resolve => {
|
||
|
axios.request({
|
||
|
url: getHospitalListUrl,
|
||
|
method: 'post',
|
||
|
headers: {
|
||
|
'Content-Type': FORM_CONTENT_TYPE,
|
||
|
},
|
||
|
}).then(res => {
|
||
|
resolve(res.data);
|
||
|
})
|
||
|
})
|
||
|
}
|