import { getNursingHomeList, getNursingDetail } from "@/api/interfaceDocument"; import { getRequest } from "@/api/customFetch"; export const useNursingHomeList = () => { const nursingHomeList = ref([]); getRequest(getNursingHomeList()).then(resp => { if(resp.code === 200){ nursingHomeList.value = (resp.result as { list: any[] }).list; } }); return {nursingHomeList} } export const useNursingDetail = () => { const nursingDetail = ref({}); getRequest(getNursingDetail()).then(resp => { if(resp.code === 200){ nursingDetail.value = (resp.result as { data: any }).data; } }); return { nursingDetail }; }