diff --git a/code/VideoAccess-VCMP/web/client/src/sections/example/actions/example.js b/code/VideoAccess-VCMP/web/client/src/sections/example/actions/example.js index b9b2ffb..367fa0e 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/example/actions/example.js +++ b/code/VideoAccess-VCMP/web/client/src/sections/example/actions/example.js @@ -3,7 +3,7 @@ import { basicAction } from '@peace/utils' import { ApiTable } from '$utils' -export function getMembers(orgId) { +export function getMembers (orgId) { return dispatch => basicAction({ type: 'get', dispatch: dispatch, diff --git a/code/VideoAccess-VCMP/web/client/src/sections/example/containers/example.jsx b/code/VideoAccess-VCMP/web/client/src/sections/example/containers/example.jsx index b8e78fd..3a06fd0 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/example/containers/example.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/example/containers/example.jsx @@ -1,7 +1,7 @@ import React, { useEffect } from 'react'; import { connect } from 'react-redux'; import { Spin, Card } from '@douyinfe/semi-ui'; - +import '../style.less' const { Meta } = Card; const Example = (props) => { diff --git a/code/VideoAccess-VCMP/web/client/src/utils/func.js b/code/VideoAccess-VCMP/web/client/src/utils/func.js index e473145..5a22ccb 100644 --- a/code/VideoAccess-VCMP/web/client/src/utils/func.js +++ b/code/VideoAccess-VCMP/web/client/src/utils/func.js @@ -1,13 +1,10 @@ 'use strict'; - export default class Func { - static isAuthorized(authcode) { - if (JSON.parse(sessionStorage.getItem('user'))) { - const { resources } = JSON.parse(sessionStorage.getItem('user')); - return resources.includes(authcode); - }else{ - return false; - } - } - } - \ No newline at end of file +export const isAuthorized = (authcode) => { + if (JSON.parse(sessionStorage.getItem('user'))) { + const { resources } = JSON.parse(sessionStorage.getItem('user')); + return resources.includes(authcode); + } else { + return false; + } +} \ No newline at end of file