Browse Source

chore : add hrad code for block

pull/5723/head
chenshuai2144 6 years ago
parent
commit
5af5ff2f52
  1. 5
      src/typings.d.ts
  2. 6
      src/utils/Authorized.ts

5
src/typings.d.ts

@ -11,10 +11,6 @@ declare module '*.gif';
declare module '*.bmp';
declare module '*.tiff';
declare module 'omit.js';
declare module 'react-copy-to-clipboard';
declare module 'react-fittext';
declare module '@antv/data-set';
declare module 'nzh/cn';
// google analytics interface
interface GAFieldsObject {
@ -30,6 +26,7 @@ interface Window {
hitType: 'event' | 'pageview',
fieldsObject: GAFieldsObject | string,
) => void;
reloadAuthorized: () => void;
}
declare let ga: Function;

6
src/utils/Authorized.ts

@ -9,5 +9,11 @@ const reloadAuthorized = (): void => {
Authorized = RenderAuthorize(getAuthority());
};
/**
* hard code
* block need it
*/
window.reloadAuthorized = reloadAuthorized;
export { reloadAuthorized };
export default Authorized;

Loading…
Cancel
Save