Ver Fonte

چک کردن پر بودن نام و نام خانوادگی

hgh há 2 anos atrás
pai
commit
b5b7f54c71
1 ficheiros alterados com 14 adições e 0 exclusões
  1. 14 0
      src/components/Auth/RegisterStep.vue

+ 14 - 0
src/components/Auth/RegisterStep.vue

@@ -364,6 +364,20 @@ export default {
         })
         return
       }
+      if (!this.firstname) {
+        this.$q.notify({
+          type: 'negative',
+          message: 'نام را وارد نکرده اید'
+        })
+        return
+      }
+      if (!this.lastname) {
+        this.$q.notify({
+          type: 'negative',
+          message: ' نام خانوادگی را وارد نکرده اید'
+        })
+        return
+      }
       if (this.rePassword !== this.password) {
         this.$q.notify({
           type: 'negative',