From c58587c4965333eeafd7d1c00ad98bd13f6420b4 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 03 十二月 2024 08:11:22 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/MapPage.jsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx index 7d4ecfd..b777f45 100644 --- a/zy-acs-flow/src/map/MapPage.jsx +++ b/zy-acs-flow/src/map/MapPage.jsx @@ -8,7 +8,7 @@ useTheme, Fab, } from '@mui/material'; -import { MAP_MODE } from "./constants"; +import { MAP_MODE, MAP_DEFAULT_ROTATION } from "./constants"; import Player from './player'; import * as Tool from './tool'; import { NotificationProvider, useNotification } from './Notification'; @@ -86,7 +86,7 @@ } } - player.rotateMap(localStorage.getItem('mapRotation')); + player.rotateMap(localStorage.getItem('mapRotation') || Tool.rotationParseNum(MAP_DEFAULT_ROTATION)); setTimeout(() => { notify.info(translate('page.map.welcome')); player.adaptScreen(); @@ -418,9 +418,9 @@ }} > <AltRoute /> + {translate('page.map.action.route')} </Fab> - <FakeFab - /> + <FakeFab /> </> )} <Fab @@ -432,7 +432,7 @@ }} > <RotateRight /> - {/* {translate('page.map.action.adapt')} */} + {translate('page.map.action.rotate')} </Fab> <Fab variant="extended" @@ -443,7 +443,7 @@ }} > <FitScreen /> - {/* {translate('page.map.action.adapt')} */} + {translate('page.map.action.adapt')} </Fab> </Box> </Box> -- Gitblit v1.9.1