From 73c664eb617b2a6776df267e90ef85e57d7a8a5f Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 07 十一月 2024 15:11:53 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/MapPage.jsx | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx index 44e67b1..e1e916c 100644 --- a/zy-acs-flow/src/map/MapPage.jsx +++ b/zy-acs-flow/src/map/MapPage.jsx @@ -83,6 +83,7 @@ Tool.generateDynamicGraphic(curZone, JSON.parse(wsMsg), setCurSprite); } + player.rotateMap(localStorage.getItem('mapRotation')); setTimeout(() => { notify.info(translate('page.map.welcome')); player.adaptScreen(); @@ -421,10 +422,7 @@ color="primary" size="small" onClick={() => { - player.rotateMap(); - // setTimeout(() => { - // player.adaptScreen(); - // }, 500) + player.rotateMap(Math.PI / 2); }} > <RotateRight /> -- Gitblit v1.9.1