@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util/tool.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wiajs/core",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "wia app core package. Part of the code is borrowed Framework7.",
5
5
  "main": "index.js",
6
6
  "types": "dist/core.d.ts",
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.replace(',', '');
147
- v2 = v2.replace(',', '');
146
+ v1 = v1.replaceAll(',', '');
147
+ v2 = v2.replaceAll(',', '');
148
148
  }
149
149
 
150
150
  if ($.isDateStr(v1) && $.isDateStr(v2)) {