Browse Source

上传新文件

张晓翠 2 years ago
parent
commit
8d9cf36d23
1 changed files with 9 additions and 0 deletions
  1. 9 0
      baby-institute-admin-ui-front-master/plop-templates/utils.js

+ 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
+    }
+  }
+}