This commit is contained in:
lyc 2024-10-29 15:11:06 +08:00
parent c3c94132bf
commit 74a65479c7
1 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<div class="page-aside">
<div>
<div>
<el-popover placement="right" trigger="hover" :width="120" popper-class="popoverStyle" >
<el-popover ref="popoverRef" placement="right" trigger="hover" :width="120" popper-class="popoverStyle" >
<template #reference>
<el-image class="user-img" :src="dev_api + userStore.user.avatar" />
</template>
@ -53,7 +53,7 @@ const router = useRouter()
const currentRoute = ref('')
const activeId = ref('/home')
const popoverRef = ref('')
const headerMenus = [
{
@ -93,6 +93,7 @@ const clickMenu = ({ id, disabled, path }) => {
}
const onUserTo = (path) =>{
popoverRef.value.hide()
router.push(path)
}