|
@@ -1,11 +1,18 @@
|
|
|
-import React from 'react';
|
|
|
+import React, {useEffect} from 'react';
|
|
|
import Styles from "./Home.module.css";
|
|
|
import videoSource from "../../assets/videos/FreeGo-web.mp4"
|
|
|
import img1 from '../../assets/images/home/img1.png';
|
|
|
import {useTranslation} from "react-i18next";
|
|
|
+import {HOME} from "../../uitls/Constants";
|
|
|
+import eventBus from "../../uitls/EventBus";
|
|
|
// 首页内容组件
|
|
|
const Home = () => {
|
|
|
const {t} = useTranslation();
|
|
|
+ useEffect(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ eventBus.emit('changeTabEvent', HOME);
|
|
|
+ }, 100);
|
|
|
+ });
|
|
|
return (
|
|
|
<main className={Styles.root}>
|
|
|
<div className={Styles.rootDesk}>
|