2.5init
This commit is contained in:
parent
c3c94132bf
commit
74a65479c7
|
@ -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