From 6ed90d1eae16fc66f51741c778f0246c202added Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 26 八月 2025 14:16:30 +0800
Subject: [PATCH] 调试初始化
---
src/views/HomeLoading/index.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/HomeLoading/index.vue b/src/views/HomeLoading/index.vue
index f934974..980219c 100644
--- a/src/views/HomeLoading/index.vue
+++ b/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('/')
--
Gitblit v1.8.0