Merge pull request '2.5init' (#4) from lyc-dev into main
This commit is contained in:
commit
c2fab0f45c
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue