Merge branch 'main' into zouyf_dev
This commit is contained in:
commit
9ab2c17b3e
|
@ -29,7 +29,11 @@
|
||||||
<div class="avatar-container">
|
<div class="avatar-container">
|
||||||
<div class="avatar-wrapper flex">
|
<div class="avatar-wrapper flex">
|
||||||
<el-dropdown class="right-menu-item hover-effect" @command="handleCommand">
|
<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>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item @click="changePage('/profile')">个人中心</el-dropdown-item>
|
<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 logoIco from '@/assets/images/logo.png'
|
||||||
import { listEvaluation } from '@/api/classManage/index'
|
import { listEvaluation } from '@/api/classManage/index'
|
||||||
import { sessionStore } from '@/utils/store'
|
import { sessionStore } from '@/utils/store'
|
||||||
|
import defaultUserImg from '@/assets/images/img-avatar.png'
|
||||||
// import Chat from '@/utils/chat' // im 登录初始化
|
// import Chat from '@/utils/chat' // im 登录初始化
|
||||||
// if (!Chat.imChat) Chat.init()
|
// if (!Chat.imChat) Chat.init()
|
||||||
|
|
||||||
|
|
|
@ -207,14 +207,14 @@ const sideMouse = e => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
mouseChange(type == 'mouseleave')
|
mouseChange(type == 'mouseleave')
|
||||||
// 关闭侧边工具内容窗口
|
// // 关闭侧边工具内容窗口
|
||||||
if (type == 'mouseleave') {
|
// if (type == 'mouseleave') {
|
||||||
timingSide = setTimeout(() => {
|
// timingSide = setTimeout(() => {
|
||||||
sideVueRef.value.closeActive()
|
// sideVueRef.value.closeActive()
|
||||||
}, 500)
|
// }, 500)
|
||||||
} else { // 移入
|
// } else { // 移入
|
||||||
if (!!timingSide) clearTimeout(timingSide)
|
// if (!!timingSide) clearTimeout(timingSide)
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
// 侧边工具栏: 操作变化
|
// 侧边工具栏: 操作变化
|
||||||
const sideChange = async o => {
|
const sideChange = async o => {
|
||||||
|
|
Loading…
Reference in New Issue