From d02e2b66172193d4d3ebe131aa710f9a0e767cc5 Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 10 Oct 2022 11:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=98=E5=8A=9B=EF=BC=9A=E7=9A=AE=E8=82=A4?= =?UTF-8?q?=E6=88=98=E5=8A=9B=E5=B1=9E=E6=80=A7=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/pubUtils/dictionary/DicFashions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/pubUtils/dictionary/DicFashions.ts b/shared/pubUtils/dictionary/DicFashions.ts index 7e465c8d9..a22528ab4 100644 --- a/shared/pubUtils/dictionary/DicFashions.ts +++ b/shared/pubUtils/dictionary/DicFashions.ts @@ -41,10 +41,10 @@ function parseAttr(str: string) { if(!str) return result; let decodeArr = decodeArrayListStr(str); for(let [id, number] of decodeArr) { - if(isNaN(parseInt(id)) || isNaN(parseInt(number))) { + if(isNaN(parseInt(id)) || isNaN(parseFloat(number))) { throw new Error('data table format wrong'); } - result.push({id: parseInt(id), number: parseInt(number)}); + result.push({id: parseInt(id), number: parseFloat(number)}); } return result } \ No newline at end of file