diff --git a/src/Charts/PrometheusChart.jsx b/src/Charts/PrometheusChart.jsx index 2fdf9e3..d3a151b 100755 --- a/src/Charts/PrometheusChart.jsx +++ b/src/Charts/PrometheusChart.jsx @@ -92,7 +92,7 @@ const PrometheusChart = ({ metricName }) => { else if (range <= 86400) step = 120; else step = 300; - const response = await axios.get('https://192.168.2.43:3000/metrics', { + const response = await axios.get('http://192.168.2.39:3000/metrics', { params: { metric: metricName, start, end, step }, }); diff --git a/src/Components/Layout/SidebarMenuComponents/MenuItem.jsx b/src/Components/Layout/SidebarMenuComponents/MenuItem.jsx index 82f5f5d..6909c79 100644 --- a/src/Components/Layout/SidebarMenuComponents/MenuItem.jsx +++ b/src/Components/Layout/SidebarMenuComponents/MenuItem.jsx @@ -30,13 +30,51 @@ const MenuItem = ({ item, onSelectItem }) => { return ( <> - + -
- {hasChildren ? (isOpen ? : ) : } -
+ {hasChildren ? ( +
+ {isOpen ? : } +
+ ) : ( +
+ {/* Здесь можно добавить другую иконку или оставить пустым */} +
+ )}
- + {hasChildren && (isOpen ? : )}
{hasChildren && (