feat: rbac初步对接完成

This commit is contained in:
Blizzard
2026-04-30 22:53:46 +08:00
parent 3ed0b76fc2
commit e3e38800aa
45 changed files with 1637 additions and 467 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react'
import { Command } from 'cmdk'
import { useNavigate } from 'react-router-dom'
import { Search, Monitor, Moon, Sun, Laptop, Palette } from 'lucide-react'
import { Search, Monitor, Moon, Sun, Laptop } from 'lucide-react'
import { useAppStore } from '@/store/app'
import { useAuthStore } from '@/store/auth'
import './cmdk.css' // We'll add some styles for cmdk
@@ -10,7 +10,7 @@ export default function CommandPalette() {
const { cmdKOpen, setCmdKOpen, setThemeHue } = useAppStore()
const menus = useAuthStore(s => s.menus)
const navigate = useNavigate()
const [theme, setTheme] = useState(document.documentElement.classList.contains('dark') ? 'dark' : 'light')
const [, setTheme] = useState(document.documentElement.classList.contains('dark') ? 'dark' : 'light')
useEffect(() => {
const down = (e: KeyboardEvent) => {