Explorar o código

上传新文件

张晓翠 %!s(int64=2) %!d(string=hai) anos
pai
achega
8d9cf36d23

+ 9 - 0
baby-institute-admin-ui-front-master/plop-templates/utils.js

@@ -0,0 +1,9 @@
+exports.notEmpty = name => {
+  return v => {
+    if (!v || v.trim === '') {
+      return `${name} is required`
+    } else {
+      return true
+    }
+  }
+}