😎清理在线用户相关代码

This commit is contained in:
zuohuaijun 2025-08-15 14:55:38 +08:00
parent 12c8e240bc
commit 3d74a0b539
3 changed files with 1 additions and 10 deletions

View File

@ -1,3 +0,0 @@
<template>
<div></div>
</template>

View File

@ -61,7 +61,6 @@ const { userInfos } = storeToRefs(stores);
const props = defineProps({
title: String,
});
// const emits = defineEmits(['handleQuery']);
const ruleFormRef = ref();
const state = reactive({
isShowDialog: false,

View File

@ -55,10 +55,6 @@ const xGrid = ref<VxeGridInstance>();
const sendMessageRef = ref<InstanceType<typeof SendMessage>>();
const state = reactive({
isVisible: false,
lastUserState: {
online: false,
realName: '',
}, //
});
//
@ -95,7 +91,6 @@ onMounted(async () => {
signalR.on('OnlineUserList', async (data: any) => {
options.data = data.userList;
console.log('dddddd');
// 线
if (!themeConfig.value.onlineNotice) return;
ElNotification({
@ -137,7 +132,7 @@ const forceOffline = async (row: any) => {
type: 'warning',
})
.then(async () => {
//
// 线Hub
await signalR.send('ForceOffline', { connectionId: row.connectionId }).catch(function (err: any) {
ElMessage.error(err);
});