refactor: ♻️ 优化布局组织结构和提升代码可读性
This commit is contained in:
@@ -4,4 +4,4 @@ export { useOnlineCount } from "./websocket/useOnlineCount";
|
||||
|
||||
export { useLayout } from "./layout/useLayout";
|
||||
export { useLayoutMenu } from "./layout/useLayoutMenu";
|
||||
export { useLayoutResponsive } from "./layout/useLayoutResponsive";
|
||||
export { useDeviceDetection } from "./layout/useDeviceDetection";
|
||||
|
||||
@@ -4,10 +4,10 @@ import { useAppStore } from "@/store";
|
||||
import { DeviceEnum } from "@/enums/settings/device.enum";
|
||||
|
||||
/**
|
||||
* 响应式布局处理
|
||||
* 设备检测和响应式处理
|
||||
* 监听屏幕尺寸变化,自动调整设备类型和侧边栏状态
|
||||
*/
|
||||
export function useLayoutResponsive() {
|
||||
export function useDeviceDetection() {
|
||||
const appStore = useAppStore();
|
||||
const { width } = useWindowSize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user