From 7b08b44e307d05c18d60687f039aaa196f75a745 Mon Sep 17 00:00:00 2001
From: qinbo <qinbo@shsening.com>
Date: 星期二, 07 十二月 2021 16:00:31 +0800
Subject: [PATCH] bug fix
---
js/function_1001.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/js/function_1001.js b/js/function_1001.js
index 2bbd476..356b98a 100644
--- a/js/function_1001.js
+++ b/js/function_1001.js
@@ -186,4 +186,13 @@
}
}
return colorList[0];
-}
\ No newline at end of file
+}
+
+function changeNullAndundefinedToEmpty(json_in) {
+ for (var key in json_in) {
+ if (json_in[key] == null || json_in[key] == 'null' || json_in[key] == undefined || json_in[key] == 'undefined') {
+ json_in[key] = "/";
+ }
+ }
+ return json_in;
+}
--
Gitblit v1.9.1