Commit 78b61c21 authored by 崔佳豪's avatar 崔佳豪

perf: 新产品引导页浏览器标题修改

parent dc89ef60
Pipeline #54073 waiting for manual action with stages
import React, { useState, useEffect, useRef } from 'react';
import { Carousel, Spin, notification } from 'antd';
import { useDocumentTitle } from '@ant-design/pro-utils';
import { connect } from 'react-redux';
import { chunk } from 'lodash';
import classnames from 'classnames';
import defaultSetting from '@wisdom-utils/components/lib/AppLayout/layouts/defaultSettings';
import SecurityLayout from '@/layouts/SecurityLayout';
import styles from './index.less';
import Panel from './Panel';
......@@ -114,6 +116,12 @@ const NewProducts = props => {
}, [window.share.event, props]);
useDocumentTitle(
{ title: defaultSetting.title, id: '', pageName: '新产品介绍' },
props.global.title || defaultSetting.title,
);
// 卡片左右切换
const onPrev = e => ref.current && ref.current.prev();
const onNext = e => ref.current && ref.current.next();
......
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