Browse Source

fix utils

release_0.0.1
yuan_yi 3 years ago
parent
commit
05e60fb524
  1. 6
      code/VideoAccess-VCMP/web/client/src/utils/func.js

6
code/VideoAccess-VCMP/web/client/src/utils/func.js

@ -1,6 +1,6 @@
'use strict';
const isAuthorized = (authcode) => {
export const isAuthorized = (authcode) => {
if (JSON.parse(sessionStorage.getItem('user'))) {
const { resources } = JSON.parse(sessionStorage.getItem('user'));
return resources.includes(authcode);
@ -8,7 +8,3 @@ const isAuthorized = (authcode) => {
return false;
}
}
export default{
isAuthorized
}
Loading…
Cancel
Save