style: 💄 代码格式优化

This commit is contained in:
cshaptx4869
2024-08-14 11:01:31 +08:00
committed by ray
parent ceeecb6315
commit 156dc1821c
5 changed files with 8 additions and 8 deletions

View File

@@ -41,8 +41,6 @@ const appStore = useAppStore();
const permissionStore = usePermissionStore();
const router = useRouter();
console.log("当前路由", useRoute().path);
// 避免 activeTopMenuPath 缓存被清理从当前路由路径获取顶部菜单路径eg. /system/user → /system
const activeTopMenuPath = useRoute().path.match(/^\/[^\/]+/)?.[0] || "/";
appStore.activeTopMenu(activeTopMenuPath);