From 06419b10e17c72e07f1c740836e5abb79df619d0 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期一, 04 十一月 2024 17:55:38 +0800 Subject: [PATCH] 搭建错题本页面 --- src/views/home/components/user-panel/index.vue | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/views/home/components/user-panel/index.vue b/src/views/home/components/user-panel/index.vue index ed05489..ed38c2b 100644 --- a/src/views/home/components/user-panel/index.vue +++ b/src/views/home/components/user-panel/index.vue @@ -9,7 +9,7 @@ @click="stateClick()" > <div class="avatar-content" v-if="userInfo.imagePath"> - <img :src="'/api/files/'+userInfo.imagePath" class="avatar-img" alt="" /> + <img :src="userInfo.imagePath?'api/files/' + userInfo.imagePath:'/static/icons/touxiang.png'" class="avatar-img" alt="" /> </div> <div class="avatar-content" @@ -23,7 +23,6 @@ </div> <template #dropdown> <el-dropdown-menu> - <el-dropdown-item>淇敼瀵嗙爜</el-dropdown-item> <el-dropdown-item @click="goPersonalCenter()" >涓汉涓績</el-dropdown-item > -- Gitblit v1.8.0