From 861876cddfa3ece91f1513aa3385e5c659d33c7e Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Fri, 9 Jun 2023 09:08:23 +0800 Subject: [PATCH] fix: fix the virtual resource in administrator Fix the virtual resource used background in the administrator overview page Change-Id: I56211de76792bf4eabba1a38ed3cc5ae05532579 --- .../containers/AdminOverview/components/VirtualResource.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/base/containers/AdminOverview/components/VirtualResource.jsx b/src/pages/base/containers/AdminOverview/components/VirtualResource.jsx index 9c25c5af..a51c8ef2 100644 --- a/src/pages/base/containers/AdminOverview/components/VirtualResource.jsx +++ b/src/pages/base/containers/AdminOverview/components/VirtualResource.jsx @@ -56,9 +56,9 @@ export class ResourceCircle extends Component { const used = overview[item.used]; const percentNum = parseFloat(((used / resource) * 100).toFixed(2)); const unUsed = parseFloat((resource - used).toFixed(2)); - let circleColor = color.primaryColor; + let circleColor = color.infoColor; if (percentNum > 70) { - circleColor = color.warnDarkColor; + circleColor = color.warnColor; } if (percentNum > 90) { circleColor = color.dangerColor;