单败重构
This commit is contained in:
parent
a72c6fcd2c
commit
d6432ceb69
@ -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)) {
|
||||
// // 显示权限不足提示
|
||||
|
Loading…
x
Reference in New Issue
Block a user