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

View File

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