diff --git a/src/components/Authorized/CheckPermissions.js b/src/components/Authorized/CheckPermissions.js
index 8a6c9780a89a387e65f8231a7a9ea669527991f6..0c3b9a4c3d5dde7a559231d6950c1fb080ec5b2a 100644
--- a/src/components/Authorized/CheckPermissions.js
+++ b/src/components/Authorized/CheckPermissions.js
@@ -50,12 +50,12 @@ const checkPermissions = (authority, currentAuthority, target, Exception) => {
try {
const bool = authority(currentAuthority);
if (bool) {
+ // 函数执行后返回值是 Promise
+ if (isPromise(bool)) {
+ return ;
+ }
return target;
}
- // 函数执行后返回值是 Promise
- if (isPromise(bool)) {
- return ;
- }
return Exception;
} catch (error) {
throw error;