Commit 0d9379ee authored by 陈前坚's avatar 陈前坚
parents 4bbd842b 5d800cff
import React, { useEffect, useState } from 'react';
import { useHistory } from 'react-router-dom';
const JumpContainer = props => {
const [url, setUrl] = useState('');
const jumpTo = useHistory();
useEffect(() => {
const jumpUrl = window.location.origin;
const address = `${jumpUrl}/cityoms3/4.0.html`;
setUrl(address);
openInNewTab(address);
}, []);
const openInNewTab = address => {
jumpTo.goBack();
window.open(address, '_blank');
console.table(jumpTo);
};
return (
<>
{url && (
<a target="_blank" href={url} rel="noopener noreferer">
跳转业务平台
</a>
)}
</>
);
};
export default JumpContainer;
...@@ -382,7 +382,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -382,7 +382,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
title="图片库" title="图片库"
okText="确定" okText="确定"
cancelText="取消" cancelText="取消"
width={860} width={1080}
onCancel={this.handleModalCancel} onCancel={this.handleModalCancel}
onOk={this.handleModalOk} onOk={this.handleModalOk}
className={styles.modal} className={styles.modal}
......
...@@ -33,6 +33,7 @@ import WebConfigPage from '@/pages/webConfig'; ...@@ -33,6 +33,7 @@ import WebConfigPage from '@/pages/webConfig';
import MobileConfigPage from '@/pages/mobileConfig'; import MobileConfigPage from '@/pages/mobileConfig';
import { USER_MODE } from '@/utils/constants'; import { USER_MODE } from '@/utils/constants';
import BaseFrameContainer from '@/components/BaseFrameContainer'; import BaseFrameContainer from '@/components/BaseFrameContainer';
import JumpContainer from '@/components/JumpContainer';
const iconStyle = { verticalAlign: '0.125em' }; const iconStyle = { verticalAlign: '0.125em' };
const superAuthority = [USER_MODE.SUPER]; const superAuthority = [USER_MODE.SUPER];
...@@ -170,11 +171,11 @@ export default { ...@@ -170,11 +171,11 @@ export default {
}, },
], ],
}, },
// { {
// path: '/platformCenter/order', path: '/platformCenter/order',
// name: '工单平台', name: '业务平台',
// component: Welcome, component: JumpContainer,
// }, },
{ {
path: '/platformCenter/notify', path: '/platformCenter/notify',
name: '消息平台', name: '消息平台',
......
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