From ca73a173f008c8d7a9d700bad897ca24fe2d2203 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 16 十月 2023 09:29:57 +0800
Subject: [PATCH] 111
---
minipro_standard/util/utils.js | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/minipro_standard/util/utils.js b/minipro_standard/util/utils.js
index f30d0dc..95f672f 100644
--- a/minipro_standard/util/utils.js
+++ b/minipro_standard/util/utils.js
@@ -59,4 +59,20 @@
number: /^\d+(?:\.\d{1,4})?$/
}
-export { gsdate, setTime, setTimeO, REGULAR }
+/***
+ *
+ * @param type 鏂囦欢绫诲瀷
+ */
+function judgmentType (type) {
+ let arr = ['jpg', 'jpeg', 'png']
+ // arr.includes(type)
+ let open = false
+ arr.forEach(item => {
+ if (type === item) {
+ open = true
+ }
+ })
+ return open;
+}
+
+export { gsdate, setTime, setTimeO, REGULAR, judgmentType }
--
Gitblit v1.9.3