feat: ✨ 新增路由守卫

This commit is contained in:
何嘉悦
2025-05-25 18:06:09 +08:00
parent 16b59d6ab2
commit f4d078ca07
52 changed files with 928 additions and 282 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { COLLAPSE_THRESHOLD } from '@/config/index';
import { useWindowWidthObserver } from '@/hooks/useWindowWidthObserver';
import { useDesignStore } from '@/store';
import { useDesignStore } from '@/stores';
/**
* 侧边栏折叠切换逻辑组合式函数 方便多个页面调用
+1 -1
View File
@@ -1,7 +1,7 @@
import type { MaybeRef } from 'vue';
import { onBeforeUnmount, ref, unref, watch } from 'vue';
import { COLLAPSE_THRESHOLD, SIDE_BAR_WIDTH } from '@/config/index';
import { useDesignStore } from '@/store';
import { useDesignStore } from '@/stores';
/**
* 这里逻辑是研究豆包的折叠逻辑后,设计的折叠方法