fix: incorrect settings page navigate (#72)

This commit is contained in:
仓鼠
2024-12-23 19:18:39 +08:00
committed by GitHub
parent 5e3db19ed6
commit b9cee057f0
2 changed files with 1 additions and 3 deletions
-3
View File
@@ -59,10 +59,7 @@ export default function SettingsPage() {
const isAdmin = profile?.role === 0
console.log(isAdmin)
if (!isAdmin) {
console.log("redirect")
navigate("/dashboard/settings/waf")
}