| | |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | <script setup lang="ts"> |
| | | import { ref, onMounted } from 'vue' |
| | | import {useRoute,useRouter} from 'vue-router' |
| | | import { ajaxGet ,ajaxPost} from '@/utils/axios' |
| | |
| | | const route = useRoute() |
| | | const router=useRouter() |
| | | const isLoading = ref(true) |
| | | const config={ |
| | | headers: { |
| | | 'Content-Type': 'application/x-www-form-urlencoded' |
| | | } |
| | | } |
| | | const getUserinfo=()=>{ |
| | | ajaxPost('/patient/info/getPatientInfo','').then((re:any)=>{ |
| | | ajaxPost('/patient/info/getPatientInfo','').then((re)=>{ |
| | | console.log(re,'得到患者的信息getUserinfo') |
| | | userInfo.setPatient(re) |
| | | router.push('/') |