chenyc
2025-08-26 6ed90d1eae16fc66f51741c778f0246c202added
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'
@@ -28,8 +28,13 @@
    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('/')