单败重构

This commit is contained in:
Kunagisa 2025-08-05 21:34:19 +08:00
parent a72c6fcd2c
commit d6432ceb69

View File

@ -378,11 +378,11 @@ const viewAuthorMaps = (username) => {
const navigateToTool = async (path, requiredPrivileges) => {
try {
// const userInfo = await getUserInfo()
// if (!userInfo) {
// router.push('/backend/login')
// return
// }
const userInfo = await getUserInfo()
if (!userInfo) {
router.push('/backend/login')
return
}
//
// if (requiredPrivileges && !hasPrivilegeWithTemp(userInfo, requiredPrivileges)) {
// //