zouyf_dev #388

Merged
zouyf merged 2 commits from zouyf_dev into main 2024-11-01 11:22:42 +08:00
2 changed files with 14 additions and 9 deletions
Showing only changes of commit 9ab2c17b3e - Show all commits

View File

@ -29,7 +29,11 @@
<div class="avatar-container">
<div class="avatar-wrapper flex">
<el-dropdown class="right-menu-item hover-effect" @command="handleCommand">
<img :src="dev_api + userStore.user.avatar" class="user-avatar" style="float: left" />
<el-image :src="dev_api + userStore.user.avatar" class="user-avatar" style="float: left">
<template #error>
<el-image :src="defaultUserImg" class="user-avatar" style="float: left" />
</template>
</el-image>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item @click="changePage('/profile')">个人中心</el-dropdown-item>
@ -80,6 +84,7 @@ import { updateUserInfo } from '@/api/system/user'
import logoIco from '@/assets/images/logo.png'
import { listEvaluation } from '@/api/classManage/index'
import { sessionStore } from '@/utils/store'
import defaultUserImg from '@/assets/images/img-avatar.png'
// import Chat from '@/utils/chat' // im
// if (!Chat.imChat) Chat.init()

View File

@ -207,14 +207,14 @@ const sideMouse = e => {
return
}
mouseChange(type == 'mouseleave')
//
if (type == 'mouseleave') {
timingSide = setTimeout(() => {
sideVueRef.value.closeActive()
}, 500)
} else { //
if (!!timingSide) clearTimeout(timingSide)
}
// //
// if (type == 'mouseleave') {
// timingSide = setTimeout(() => {
// sideVueRef.value.closeActive()
// }, 500)
// } else { //
// if (!!timingSide) clearTimeout(timingSide)
// }
}
// :
const sideChange = async o => {