From c74d55e62bbe7c94326ff42921276ce065752543 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 18 Jul 2025 18:48:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/system/PageContainer.jsx | 2 +- src/frontend/src/pages/ScanPage.jsx | 23 +++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/frontend/src/components/system/PageContainer.jsx b/src/frontend/src/components/system/PageContainer.jsx index ba723a5..9dcf8bd 100644 --- a/src/frontend/src/components/system/PageContainer.jsx +++ b/src/frontend/src/components/system/PageContainer.jsx @@ -8,7 +8,7 @@ import { Box } from '@chakra-ui/react'; */ const PageContainer = ({ children }) => { return ( - + {children} ); diff --git a/src/frontend/src/pages/ScanPage.jsx b/src/frontend/src/pages/ScanPage.jsx index 0f78d56..ef6f82b 100644 --- a/src/frontend/src/pages/ScanPage.jsx +++ b/src/frontend/src/pages/ScanPage.jsx @@ -52,6 +52,7 @@ const ScanPage = () => { })), }); setNetworkAdapters(networkCollection); + setLocalIp(config.backendUrl); }); }, []); @@ -186,25 +187,29 @@ const ScanPage = () => { {inputMode ? ( - setSubnet(e.target.value)} - width={'300px'} - bg={'whiteAlpha.200'} - /> + + setSubnet(e.target.value)} + width={'300px'} + bg={'whiteAlpha.200'} + /> + ) : null} - +