Commit 570540c6 authored by 邓晓峰's avatar 邓晓峰

feat: 集成报表菜单

parent 18093839
Pipeline #43329 passed with stages
in 1 minute 35 seconds
import React from 'react';
import Iframe from 'react-iframe';
export default props => {
import { connect } from 'react-redux';
const ShareFrame = props => {
const state = props.location.state || {};
if(!state.linkUrl) {
return null;
}
const { token, userInfo } = props.global;
return (
<Iframe url={`${state.linkUrl}?token=${window.globalConfig.token}&loginName=${window.globalConfig.userInfo.loginName}`}
<Iframe url={`${state.linkUrl}?token=${token}&loginName=${userInfo.loginName}`}
width="100%"
height="100%"
id="myId"
......@@ -17,3 +19,13 @@ export default props => {
position="relative"/>
)
}
const mapStateToProps = state => ({
global: state.getIn(['global', 'globalConfig'])
});
export default connect(
mapStateToProps
)(ShareFrame);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment