fix: bug修复

This commit is contained in:
kaizheng(郑凯) 2025-02-26 21:53:27 +08:00
parent b58ff53eb5
commit 7276ebf57d
2 changed files with 7 additions and 2 deletions

View File

@ -37,6 +37,7 @@
"
class="user-avatar"
/>
<span class="name" v-if="user.user">{{ user.user.name }}</span>
<i class="el-icon-caret-bottom" />
</div>
<el-dropdown-menu slot="dropdown">
@ -183,7 +184,8 @@ export default {
margin-right: 30px;
.avatar-wrapper {
margin-top: 5px;
display: flex;
align-items: center;
position: relative;
.user-avatar {
@ -192,6 +194,9 @@ export default {
height: 40px;
border-radius: 10px;
}
.name {
padding: 0 5px;
}
.el-icon-caret-bottom {
cursor: pointer;

View File

@ -18,7 +18,7 @@ export default {
},
// websock 链接
connect(id) {
const brokerUrl =
let brokerUrl =
process.env.NODE_ENV === "development"
? "ws://8.138.144.54:8080/tgim/chat"
: `${location.protocol === "http:" ? "ws://" : "wss://"}${