From dabb3ab825e23a2550e0ec9df6d2d47482d1822c Mon Sep 17 00:00:00 2001 From: 13404089107 <puwei@sinata.cn> Date: 星期四, 26 六月 2025 15:30:56 +0800 Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory --- culture/src/layouts/components/HeaderNav.vue | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/culture/src/layouts/components/HeaderNav.vue b/culture/src/layouts/components/HeaderNav.vue index 5af7e7e..0c66d87 100644 --- a/culture/src/layouts/components/HeaderNav.vue +++ b/culture/src/layouts/components/HeaderNav.vue @@ -2,7 +2,12 @@ <div> <!-- 右侧用户登录图标 --> <div class="user-logininfo"> - <div class="user-logininfo-icon"> + <div class="logoIcon" v-if="logo"> + <div class="image"> + <img src="../../assets/logo.jpg" alt="" srcset="" /> + </div> + </div> + <div class="user-logininfo-icon" v-else> <!-- 折叠 --> <i @click="clickFold" class="el-icon-s-fold"></i> <!-- 标签列表 --> @@ -37,6 +42,12 @@ scrollTimer: null, scrollAmount: 0 } + }, + props: { + logo: { + type: String, + default: "", + }, }, computed: { ...mapState(['tagList', 'isFold']) @@ -109,6 +120,17 @@ align-items: center; justify-content: space-between; overflow: hidden; + .image { + // margin-top: 40px; + width: 70px; + height: 70px; + + img { + width: 100%; + height: 100%; + border-radius: 50%; + } + } .user-logininfo-icon { margin-right: 30px; -- Gitblit v1.7.1