From bb661732a2c5211938e316734dda79ff2d88f749 Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期四, 04 七月 2024 12:52:03 +0800
Subject: [PATCH] 表格输入框分数计算
---
src/util/excelFountion.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/util/excelFountion.js b/src/util/excelFountion.js
index 1fa318f..8399698 100644
--- a/src/util/excelFountion.js
+++ b/src/util/excelFountion.js
@@ -319,7 +319,9 @@
if(typeof(comValue[a])=='string'&&comValue[a].includes('^')){
// 璁$畻骞傛
arr[a] = CalculatePower(comValue[a])
- }else{
+ } else if (typeof(comValue[a])=='string'&&comValue[a].includes('/')) {
+ arr[a] = comValue[a]
+ } else{
arr[a] = comValue[a]
}
}
--
Gitblit v1.9.3