From b95b5437d64089f8cf4cfc1adb20b1e4ea583821 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 29 九月 2024 15:22:49 +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