移除登陆界面用户名的校验

This commit is contained in:
zhl 2021-03-15 18:25:58 +08:00
parent 6e8065ea06
commit a242de0307

View File

@ -123,11 +123,12 @@ import SocialSign from './components/SocialSignin.vue'
})
export default class extends Vue {
private validateUsername = (rule: any, value: string, callback: Function) => {
if (!isValidUsername(value)) {
callback(new Error('Please enter the correct user name'))
} else {
callback()
}
callback()
// if (!isValidUsername(value)) {
// callback(new Error('Please enter the correct user name'))
// } else {
// callback()
// }
}
private validatePassword = (rule: any, value: string, callback: Function) => {