@wiajs/core 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util/tool.js +2 -2
package/package.json
CHANGED
package/util/tool.js
CHANGED
|
@@ -143,8 +143,8 @@ function compareObj(k, desc, type) {
|
|
|
143
143
|
if ($.isStr(v1) || $.isStr(v2)) {
|
|
144
144
|
// 金额可能有千字分隔符,需替换
|
|
145
145
|
if (type.toLowerCase() === 'number') {
|
|
146
|
-
v1 = v1.
|
|
147
|
-
v2 = v2.
|
|
146
|
+
v1 = v1.replaceAll(',', '');
|
|
147
|
+
v2 = v2.replaceAll(',', '');
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
if ($.isDateStr(v1) && $.isDateStr(v2)) {
|