From 346a11616ba2252209cf1f015ee3f8578ede6147 Mon Sep 17 00:00:00 2001 From: rivery Date: Tue, 10 Jan 2023 17:45:33 +0800 Subject: [PATCH 1/2] fix: chart's min must 0 --- src/components/Charts/LineChart.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Charts/LineChart.tsx b/src/components/Charts/LineChart.tsx index bc0e8e55..35eb88ed 100644 --- a/src/components/Charts/LineChart.tsx +++ b/src/components/Charts/LineChart.tsx @@ -118,7 +118,10 @@ function LineChart(props: IProps, ref) { if ((max - min) < 5) { max = max + 5; min = min < 0 ? min - 5 : 0; + } else { + min = 0; } + yMin.current = min; yMax.current = max; const tickInterval = Math.round((max - min) / 5); From b983943d6bfdfadccb7f6b32f27ccb83e4df71cf Mon Sep 17 00:00:00 2001 From: rivery Date: Tue, 10 Jan 2023 17:56:28 +0800 Subject: [PATCH 2/2] fix: update text --- src/config/locale/zh-CN/rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/locale/zh-CN/rules.json b/src/config/locale/zh-CN/rules.json index 80ff8d4a..43ee1cfc 100644 --- a/src/config/locale/zh-CN/rules.json +++ b/src/config/locale/zh-CN/rules.json @@ -1,5 +1,5 @@ { "usernameRequired": "请输入用户名", "passwordRequired": "请输入密码", - "versionRequired":"请输入nebula版本" + "versionRequired":"请输入 NebulaGraph 版本" } \ No newline at end of file