From e0b8b033b1c2483367dddb556ca82f906c217185 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 01 十一月 2022 11:28:29 +0800
Subject: [PATCH] 45

---
 src/App.vue |   36 ++++++++++++++++++++----------------
 1 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index de08e0c..4b75800 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -6,27 +6,31 @@
 
 
 <script setup lang="ts">
+    import { Session } from '@/utils/storage'
+    import { userInfoStore } from '@/stores/userInfo'
+    import { ajaxPost} from '@/utils/axios'
+    const userInfo = userInfoStore()
+    const token =Session.get('token')
+    // const token='eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJQQVRfU0ZfUEFUMjQ0MTUyMTM4MzcwMjgyN19TRl8iLCJhdXRoIjpbeyJhdXRob3JpdHkiOiJhZG1pbiJ9XSwiaWF0IjoxNjY3MjcwNTc5LCJleHAiOjE2Njc2MzA1Nzl9.3_K8avdonSTtFhPErO0M0JVan0KtnHxdACJno9B-PWg'
+    // console.log('token到底等于机',token)
+    if (token){
+        Session.set('token', token)
+        console.log('token='+Session.get('token '))
+        ajaxPost('/patient/info/getPatientInfo','').then((re:any)=>{
+            console.log(re,'得到患者的信息getUserinfo')
+            userInfo.setPatient(re)
+        })
+
+    } else {
+        console.log('token为空')
+    }
 </script>
 
 <style scoped lang="scss">
 .app-view {
+    display: grid;
+    background-color:#F6FAFF;
 }
 
-::-webkit-scrollbar {
-    width: 4px;
-    height: 6px;
-    background-color: rgba(255, 255, 255, 0.7);
-}
-
-/* 滚动条 */
-::-webkit-scrollbar-thumb {
-    -webkit-border-radius: 10px;
-    border-radius: 10px;
-    background: #ababab;
-}
-
-::-webkit-scrollbar-thumb:window-inactive {
-    background-color: #ababab;
-}
 </style>
 

--
Gitblit v1.8.0