no commit message

This commit is contained in:
annnj-company
2026-04-24 11:28:23 +08:00
parent 49476bc357
commit 522c222ae3
11 changed files with 303 additions and 47 deletions

View File

@@ -4,7 +4,7 @@
<!-- <Avatar :src="userAvator"/> -->
<span style="color: #444; ">{{username}}-[退出]</span>
<i class="el-icon-setting"></i>
<DropdownMenu slot="list">
<!-- <DropdownItem name="usercenter">个人信息</DropdownItem>
<DropdownItem name="changePwd">修改密码</DropdownItem> -->
@@ -18,6 +18,7 @@
import './user.less'
import { logout } from '@/api/user'
import store from 'store'
import { disconnectSocket } from '@/libs/socket'
export default {
name: 'user',
props: {
@@ -39,6 +40,8 @@ export default {
switch (name) {
case 'logout':
logout({}).then(() => {
// 断开WebSocket连接
disconnectSocket()
this.$store.commit('logout')
location.reload()
})