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