From fc450fec430b6e44bf2cfea27068073f82bd462b Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Wed, 26 Jul 2023 11:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=9F=B1=E5=9B=BE=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E7=9A=84=E6=9C=80=E5=A4=A7=E5=80=BC=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/comm.js | 8 +++++++- src/views/HomeView.vue | 6 ++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/utils/comm.js b/src/utils/comm.js index 6d5d98f..f2968ba 100644 --- a/src/utils/comm.js +++ b/src/utils/comm.js @@ -21,5 +21,11 @@ export function numGrow(obj,end){ // 计算eachrt的最大值 export function ecMaxVal(arr){ - return Math.max(arr) + const narr = []; + const maxval = Math.max(...arr); + for(let i=0;i