Commit 5d241979 authored by 周宏民's avatar 周宏民

feat: 修改引导页

parent a92fe3c4
Pipeline #89657 passed with stages
......@@ -16,7 +16,7 @@ import { actionCreators } from '@/containers/App/store';
import { SERVICE_INTERFACE_SUCCESS_CODE } from '@/constants';
import PandaBootPage from './panda';
import IntegrationPage from './integration';
import Demonstration from './demonstration';
import Demonstration from '../demonstration';
const systemItemName = '引导页模板'; // 系统配置项名称
const BootPageTemplate = {
......
......@@ -465,21 +465,23 @@ const Demonstration = props => {
getProjectConfig();
getProductConfig();
}, [props.global]);
useEffect(() => {
const tk = Cookies.get('token') || props.global.token;
const isLogin = tk !== null && tk !== 'undefined' && tk !== void 0;
let client = props?.global?.client || sessionStorage.getItem('client') || null;
client = client !== 'undefined' && !_.isNull(client) && !_.isUndefined(client) ? client : 'city';
// eslint-disable-next-line no-prototype-builtins
const generateType = props.global && props.global.hasOwnProperty('get') ? props.global.get('generateType') : null;
if (!isLogin) {
history.push(`/user/login?client=${client}${generateType || ''}`, { reload: true });
clear();
props.logout();
}
}, []);
useEffect(() => {}, []);
return (
<div className={classNames(styles.demonstration)} ref={ref}>
{!linkUrl ? (
<div
className={classNames(styles.iframeExit, 'animate__animated', 'animate__fadeIn')}
onClick={() => props.logout && props.logout()}
>
<div className={styles.iframeBackLeft}>
<img src={arrowLeftImg} alt="退出" />
</div>
<div className={styles.iframeExitIcon}>
<img src={backImg} alt="退出" />
退出
</div>
</div>
) : null}
{jumpLoading ? (
<div className={styles.demonstrationLoad} key="jumpLoading">
<div style={{ width: '285px' }}>
......
......@@ -6,7 +6,6 @@ import { dynamic } from '@wisdom-utils/runtime';
import BasicLayout from '../layouts/BasicLayout';
import HomePage from '../layouts/TransitionPage';
import BootPage from '../pages/bootpage';
import Demonstration from '../pages/demonstration'; // 引导页
import UsingAnalysis from '../pages/cloud/analysis/using';
import NewProducts from '../pages/cloud/introduction/newproducts';
import CommonMenu from '../pages/commonMenu';
......@@ -54,16 +53,8 @@ export const dyRoutes = (routes, layout, theme) => {
},
{
path: '/industry',
component: Demonstration,
component: BootPage,
},
// {
// path: '/demonstration',
// component: Demonstration,
// },
// {
// path: '/industry',
// component: BootPage,
// },
{
path: '/cloud/analysis/using',
component: UsingAnalysis,
......
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