mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
add phone number validation to accept only numbers
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { required, email, sameAs, requiredIf } from "vuelidate/lib/validators";
|
||||
import { required, email, sameAs, requiredIf, numeric } from "vuelidate/lib/validators";
|
||||
import request from '../../../mixins/requestMixin'
|
||||
|
||||
export default {
|
||||
@@ -248,7 +248,7 @@
|
||||
company_name: {
|
||||
required: this.type === 2
|
||||
},
|
||||
phone: { required },
|
||||
phone: { required, numeric },
|
||||
wechat: {},
|
||||
password: { required },
|
||||
confirm_password: { sameAsPassword: sameAs('password') }
|
||||
|
||||
Reference in New Issue
Block a user