refactor: ♻️ 优化布局组织结构和提升代码可读性
This commit is contained in:
1 parent
474c0e9c35
commit
bf8e379616
11 files changed
+112
-77
No files matched your search
@@ -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