From cce9b105726750f1b76eef2fa250680ebf36d06c Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期五, 08 十一月 2024 09:54:45 +0800
Subject: [PATCH] 完成教师端,页面顶部展示

---
 src/views/profile/index.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/views/profile/index.vue b/src/views/profile/index.vue
index 93b3147..240fa65 100644
--- a/src/views/profile/index.vue
+++ b/src/views/profile/index.vue
@@ -4,17 +4,20 @@
       <el-row :gutter="20">
 
         <el-col :span="6" :xs="24">
-          <user-card  :userInfo="userInfo" />
+          <user-card  :user-info="userInfo" />
         </el-col>
 
         <el-col :span="18" :xs="24">
           <el-card>
             <el-tabs active-name="timeline">
               <el-tab-pane label="鏃堕棿绾�" name="timeline">
-                <timeline :userInfo="userInfo" />
+                <timeline :user-info="userInfo" />
               </el-tab-pane>
               <el-tab-pane label="璐﹀彿" name="account">
-                <account :userInfo="userInfo"  />
+                <account :user-info="userInfo"  />
+              </el-tab-pane>
+              <el-tab-pane label="淇敼瀵嗙爜" name="editPassword">
+                <editPassword :user-info="userInfo" />
               </el-tab-pane>
             </el-tabs>
           </el-card>
@@ -29,6 +32,7 @@
 import UserCard from './components/UserCard'
 import Timeline from './components/Timeline'
 import Account from './components/Account'
+import EditPassword from './components/EditPassword'
 import userApi from '@/api/user'
 
 export default {
@@ -45,11 +49,11 @@
       }
     }
   },
-  components: { UserCard, Timeline, Account },
+  components: { UserCard, Timeline, Account, EditPassword },
   created () {
     let _this = this
     userApi.getCurrentUser().then(re => {
-      _this.userInfo = re.response
+      _this.userInfo = re.data
     })
   }
 }

--
Gitblit v1.8.0