单败重构

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) => { const navigateToTool = async (path, requiredPrivileges) => {
try { try {
// const userInfo = await getUserInfo() const userInfo = await getUserInfo()
// if (!userInfo) { if (!userInfo) {
// router.push('/backend/login') router.push('/backend/login')
// return return
// } }
// //
// if (requiredPrivileges && !hasPrivilegeWithTemp(userInfo, requiredPrivileges)) { // if (requiredPrivileges && !hasPrivilegeWithTemp(userInfo, requiredPrivileges)) {
// // // //