From 0b3531131c111495c8996b9df33e5c1b4beb0dbc Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Apr 2024 00:23:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20enum=E4=B8=8B=E6=8B=89=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84bug=E9=9C=80parseInt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/enum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/enum.js b/src/utils/enum.js index 49ede02c..3ac712fa 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -79,7 +79,7 @@ export const productTypeEnum = new EnumFactory({ 50: '加工工具', 60: '辅助工装', 70: '办公用品', -}) +}, parseInt) export const eqTypeEnum = new EnumFactory({ 10: { text: '生产设备', type: 'success' }, 20: { text: '计量设备', type: 'primary' }, @@ -104,4 +104,4 @@ export const iMEnum = new EnumFactory({ 10: '单开为开/单停为停', 20: '单开为开/都停为停', 30: '都开为开/单停为停', -}) \ No newline at end of file +}, parseInt) \ No newline at end of file