refactor: ♻️ 优化布局组织结构和提升代码可读性

This commit is contained in:
Ray.Hao
2025-09-15 13:27:25 +08:00
parent 474c0e9c35
commit bf8e379616
11 changed files with 112 additions and 77 deletions

View File

@@ -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();