From d6fec531b2e73a59331672a32862a8ee18ebbb30 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Sun, 3 Nov 2024 12:06:18 +0800 Subject: [PATCH] Fix(Simulation): Fix the bug that simulation cannot switch device and rotate --- .../src/components/Playground/Output/Preview/Render.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/components/Playground/Output/Preview/Render.tsx b/src/renderer/src/components/Playground/Output/Preview/Render.tsx index 27e079c..67cd9eb 100644 --- a/src/renderer/src/components/Playground/Output/Preview/Render.tsx +++ b/src/renderer/src/components/Playground/Output/Preview/Render.tsx @@ -99,7 +99,7 @@ const Render = ({ } } ]) - }, []) + }, [selectedDevice, isRotate, iframeKey, iframeRef, iframeUrl, setIsLoaded]) return mobileMode ? ( <>