diff --git a/src/forge/Information/Pages/headerPagebyCCF.jsx b/src/forge/Information/Pages/headerPagebyCCF.jsx
index 0b2901008..896194f5c 100644
--- a/src/forge/Information/Pages/headerPagebyCCF.jsx
+++ b/src/forge/Information/Pages/headerPagebyCCF.jsx
@@ -14,20 +14,6 @@ import Slider from 'react-slick';
import Left from '../../../home/Img/left.png';
import Right from '../../../home/Img/right.png';
-const setting = {
- dots: true,
- infinite: true,
- speed: 2000,
- slidesToShow: 1,
- slidesToScroll: 1,
- pauseOnDotsHover: true,
- autoplaySpeed: 5000,
- pauseOnFocus: true,
- autoplay: true,
- arrows: true,
- prevArrow: ,
- nextArrow:
-}
function HeaderPageCCF(props) {
const [projectList, setProjectList] = useState(undefined);
@@ -37,6 +23,22 @@ function HeaderPageCCF(props) {
const { deptId, cateId } = props.match.params;
const { data, id, temp } = props;
const [mainList, setMainList] = useState(undefined);
+ const [tag,setTag] = useState(0);
+ const setting = {
+ dots: true,
+ infinite: true,
+ speed: 2000,
+ slidesToShow: 1,
+ slidesToScroll: 1,
+ pauseOnDotsHover: true,
+ autoplaySpeed: 5000,
+ pauseOnFocus: true,
+ autoplay: true,
+ arrows: true,
+ prevArrow:
,
+ nextArrow:
,
+ afterChange: (index)=> setTag(index)
+ }
useEffect(() => {
if (id||cateId) {
@@ -128,7 +130,7 @@ function HeaderPageCCF(props) {
newsList.map((i, k) => {
return (
@@ -153,7 +155,7 @@ function HeaderPageCCF(props) {
{i.name}
- {window.location.href=`/zone/${deptId}/news/${i.id}`}}>