Commit 93afa3a0 authored by 邓晓峰's avatar 邓晓峰

feat: 集成报表菜单

parent 753bec64
...@@ -204,7 +204,8 @@ export function logout(data) { ...@@ -204,7 +204,8 @@ export function logout(data) {
localStorage.removeItem('access_token'); localStorage.removeItem('access_token');
// eslint-disable-next-line no-undef,no-restricted-globals // eslint-disable-next-line no-undef,no-restricted-globals
createStoreage.remove(`__PANDA_STORE__${location.hostname}`); createStoreage.remove(`__PANDA_STORE__${location.hostname}`);
createStoreage.remove(`__PANDA_STORE__MICRO_${location.hostname}`) createStoreage.remove(`__PANDA_STORE__MICRO_${location.hostname}`);
localStorage.removeItem('JmReport-Access-Token');
return { return {
type: LOGINOUT, type: LOGINOUT,
data: { data: {
......
...@@ -333,7 +333,7 @@ const BasicLayout = props => { ...@@ -333,7 +333,7 @@ const BasicLayout = props => {
if (!Cookies.get('token')) { if (!Cookies.get('token')) {
let client = props.global && props.global.client; let client = props.global && props.global.client;
client = client !== 'undefined' && !_.isNull(client) && !_.isUndefined(client) ? client: 'city'; client = client !== 'undefined' && !_.isNull(client) && !_.isUndefined(client) ? client: 'city';
let generateType = props.global.get('generateType'); let generateType = props.global && props.global.get('generateType');
generateType = !_.isNull(generateType) && !_.isUndefined(generateType) && generateType !== 'undefined' ? `&generateType=${generateType}` : ''; generateType = !_.isNull(generateType) && !_.isUndefined(generateType) && generateType !== 'undefined' ? `&generateType=${generateType}` : '';
history.replace(`/user/login?client=${client}${generateType}`); history.replace(`/user/login?client=${client}${generateType}`);
props.logout(); props.logout();
......
...@@ -7,7 +7,7 @@ export default props => { ...@@ -7,7 +7,7 @@ export default props => {
return null; return null;
} }
return ( return (
<Iframe url={`${state.linkUrl}?token=${window.globalConfig.token}`} <Iframe url={`${state.linkUrl}?token=${window.globalConfig.token}&loginName=${window.globalConfig.userInfo.loginName}`}
width="100%" width="100%"
height="100%" height="100%"
id="myId" id="myId"
......
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