refactor: ♻️ 提取 ROLE_ROOT 常量到 constants 目录并全局统一引用
This commit is contained in:
@@ -359,7 +359,7 @@ import { useUserStore } from "@/store/modules/user.store";
|
||||
import { formatGrowthRate } from "@/utils";
|
||||
import { useTransition, useDateFormat } from "@vueuse/core";
|
||||
import { Connection, Failed } from "@element-plus/icons-vue";
|
||||
import { useOnlineCount } from "@/hooks/websocket/services/useOnlineCount";
|
||||
import { useOnlineCount } from "@/composables/useOnlineCount";
|
||||
|
||||
// 在线用户数量组件相关
|
||||
const { onlineUserCount, lastUpdateTime, isConnected } = useOnlineCount();
|
||||
|
||||
Reference in New Issue
Block a user