2.5init #4

Merged
lyc merged 1 commits from lyc-dev into main 2024-10-29 15:10:27 +08:00
1 changed files with 3 additions and 2 deletions

View File

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