#
luxiaotao1123
2024-09-10 a879fd0f403e01ee493137d6d609778a561871d7
#
1个文件已修改
17 ■■■■■ 已修改文件
zy-acs-flow/src/page/dashboard/Dashboard.jsx 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/page/dashboard/Dashboard.jsx
@@ -1,15 +1,20 @@
import React, { useState, useRef, useEffect, useMemo } from "react";
import {
    useCheckAuth,
    useTranslate,
} from "react-admin";
import Player from "../../map/player";
let player;
const Dashboard = () => {
    const translate = useTranslate();
    const mapRef = React.useRef();
    useEffect(() => {
        player = new Player(mapRef.current)
    }, [])
    return (
        <>
            <h1>{translate('hello')}</h1>
            <h1>Hello World</h1>
            <div ref={mapRef} ></div>
        </>
    )
}