云文件管理系统上传组件优化
This commit is contained in:
@@ -178,6 +178,7 @@ const handleUserCommand = (command) => {
|
|||||||
passwordVisible.value = true
|
passwordVisible.value = true
|
||||||
} else if (command === 'logout') {
|
} else if (command === 'logout') {
|
||||||
ElMessageBox.confirm('确定退出登录吗?', '提示', { type: 'warning' }).then(() => {
|
ElMessageBox.confirm('确定退出登录吗?', '提示', { type: 'warning' }).then(() => {
|
||||||
|
chatService.disconnect() // 断开 WebSocket 连接
|
||||||
userStore.logout()
|
userStore.logout()
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
|
|||||||
Reference in New Issue
Block a user