From 9563e3ddfee9a2437a77b56c8fdf12d9599b4f44 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 24 Jul 2024 14:08:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20MA?= =?UTF-8?q?C=E7=94=B5=E8=84=91=E4=B8=8A=EF=BC=8C=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?Copilot=E5=AF=B9=E8=AF=9D=E4=B8=AD=E8=BE=93=E5=85=A5=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E7=84=B6=E5=90=8E=E5=9B=9E=E8=BD=A6=EF=BC=8C=E4=BC=9A?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=8F=91=E9=80=81=E5=AF=B9=E8=AF=9D=EF=BC=8C?= =?UTF-8?q?=E8=80=8C=E4=B8=8D=E6=98=AF=E5=B0=86=E8=8B=B1=E6=96=87=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=88=B0=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/util.ts | 14 +++++++------- core/core-frontend/src/views/copilot/index.vue | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/util.ts b/core/core-frontend/src/views/chart/components/js/util.ts index a1a7858b4c..82ebe3ef5c 100644 --- a/core/core-frontend/src/views/chart/components/js/util.ts +++ b/core/core-frontend/src/views/chart/components/js/util.ts @@ -655,14 +655,14 @@ export const stepsColor = (start, end, steps, gamma) => { function parseColor(hexStr) { return hexStr.length === 4 ? hexStr - .substr(1) - .split('') - .map(function (s) { - return 0x11 * parseInt(s, 16) - }) + .substr(1) + .split('') + .map(function (s) { + return 0x11 * parseInt(s, 16) + }) : [hexStr.substr(1, 2), hexStr.substr(3, 2), hexStr.substr(5, 2)].map(function (s) { - return parseInt(s, 16) - }) + return parseInt(s, 16) + }) } function pad(s) { return s.length === 1 ? '0' + s : s diff --git a/core/core-frontend/src/views/copilot/index.vue b/core/core-frontend/src/views/copilot/index.vue index 44de40e519..0a017948fa 100644 --- a/core/core-frontend/src/views/copilot/index.vue +++ b/core/core-frontend/src/views/copilot/index.vue @@ -1,5 +1,5 @@