角色管理完成

This commit is contained in:
xiayuping666
2024-04-18 17:15:06 +08:00
parent 480863aa4b
commit 2d7cbc4d9d
7 changed files with 733 additions and 269 deletions
+4 -1
View File
@@ -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('请输入正确的手机号!')