chenyc
2025-08-26 7c2cce763bf0959fd2cc55b16557931f4e4ffceb
src/views/HomeLoading/index.vue
@@ -16,7 +16,7 @@
    </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'
@@ -29,7 +29,7 @@
    const router=useRouter()
    const isLoading = ref(true)
    const getUserinfo=()=>{
        ajaxPost('/patient/info/getPatientInfo','').then((re:any)=>{
        ajaxPost('/patient/info/getPatientInfo','').then((re)=>{
            console.log(re,'得到患者的信息getUserinfo')
            userInfo.setPatient(re)
            router.push('/')