| | |
| | | <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-tabs> |
| | | </el-card> |
| | |
| | | created () { |
| | | let _this = this |
| | | userApi.getCurrentUser().then(re => { |
| | | _this.userInfo = re.response |
| | | _this.userInfo = re.data |
| | | }) |
| | | } |
| | | } |