From a879fd0f403e01ee493137d6d609778a561871d7 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 10 九月 2024 16:37:41 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/dashboard/Dashboard.jsx | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/zy-acs-flow/src/page/dashboard/Dashboard.jsx b/zy-acs-flow/src/page/dashboard/Dashboard.jsx index 9a5c559..1b969f0 100644 --- a/zy-acs-flow/src/page/dashboard/Dashboard.jsx +++ b/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> </> ) } -- Gitblit v1.9.1