fix: 去除mobile验证
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import { host, port } from '@/components/common/js/validate'
|
// import { host, port } from '@/components/common/js/validate'
|
||||||
import {isvalidPhone} from "../../../../store/validate";
|
// import {isvalidPhone} from "../../../../store/validate";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'userBox',
|
name: 'userBox',
|
||||||
@@ -111,15 +111,15 @@ export default {
|
|||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const phoneVerification = (rule, value,callback) => {
|
// const phoneVerification = (rule, value,callback) => {
|
||||||
if (!value){
|
// if (!value){
|
||||||
callback(new Error(this.$t('validate.telephone')))
|
// callback(new Error(this.$t('validate.telephone')))
|
||||||
}else if (!isvalidPhone(value)){
|
// }else if (!isvalidPhone(value)){
|
||||||
callback(new Error(this.$t('validate.tel')))
|
// callback(new Error(this.$t('validate.tel')))
|
||||||
}else {
|
// }else {
|
||||||
callback()
|
// callback()
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
return {
|
return {
|
||||||
editUser: {},
|
editUser: {},
|
||||||
url: 'sys/user',
|
url: 'sys/user',
|
||||||
@@ -143,11 +143,11 @@ export default {
|
|||||||
],
|
],
|
||||||
email: [
|
email: [
|
||||||
{ type: 'email', message: this.$t('validate.email') }
|
{ type: 'email', message: this.$t('validate.email') }
|
||||||
],
|
|
||||||
mobile: [
|
|
||||||
{ validator: phoneVerification, required : true, trigger: 'blur' },
|
|
||||||
{ required: true, message: '', trigger: 'blur' }
|
|
||||||
]
|
]
|
||||||
|
// mobile: [
|
||||||
|
// { validator: phoneVerification, required : true, trigger: 'blur' },
|
||||||
|
// { required: true, message: '', trigger: 'blur' }
|
||||||
|
// ]
|
||||||
},
|
},
|
||||||
rules2: { // 表单校验规则
|
rules2: { // 表单校验规则
|
||||||
username: [
|
username: [
|
||||||
|
|||||||
Reference in New Issue
Block a user