Merge pull request '完成用户头像下拉菜单退出登录模块前端' (#17) from Brunch_LPQ into main

pull/24/head
ppnwsfegt 2 months ago
commit 8f4406d300

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

@ -1,13 +1,36 @@
<template>
<div>
退出登录
</div>
<!-- 添加下拉菜单组件 -->
<el-dropdown>
<span class="el-dropdown-link">
<!-- <img src="../../assets/user.png" alt=""> -->
<!-- 将下拉菜单文字替换为用户头像 -->
<img class="uimage" src="@/assets/user.png" alt="">
</span>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item>退出登录</el-dropdown-item>
<!-- 目前只需要退出登录功能注释掉多余action -->
<!-- <el-dropdown-item>Action 2</el-dropdown-item>
<el-dropdown-item>Action 3</el-dropdown-item>
<el-dropdown-item disabled>Action 4</el-dropdown-item>
<el-dropdown-item divided>Action 5</el-dropdown-item> -->
</el-dropdown-menu>
</template>
</el-dropdown>
</template>
<script setup lang="ts">
</script>
<style scoped>
<style scoped lang="scss">
//
.uimage{
height: 45px;
width: 45px;
border-radius: 50%;
cursor: pointer;
}
</style>
Loading…
Cancel
Save