角色管理完成
This commit is contained in:
@@ -174,12 +174,13 @@ export default {
|
||||
},
|
||||
// 登录按钮点击
|
||||
submitForm() {
|
||||
this.submit.loading = true;
|
||||
this.$router.push('/evaluate')
|
||||
console.log(this.$router)
|
||||
|
||||
if( rulesPhone(this.loginForm.phone) ){ // 判断是否存在手机号验证码
|
||||
if(this.loginForm.code){
|
||||
this.submit.loading = true;
|
||||
|
||||
// 登录发请求获取用户信息
|
||||
let obj = {...this.$store.state.loginConfig.loginConfig, ...this.loginForm}
|
||||
let formData = new FormData()
|
||||
@@ -209,6 +210,8 @@ export default {
|
||||
this.submit.loading = false;
|
||||
this.sendText = '发送'
|
||||
})
|
||||
}else{
|
||||
this.$message.error('请输入验证码!')
|
||||
}
|
||||
}else {
|
||||
this.$message.error('请输入正确的手机号!')
|
||||
|
||||
Reference in New Issue
Block a user