|
|
@@ -10,6 +10,7 @@ import store from '@/store'
|
|
|
export const userMixin = {
|
|
|
data() {
|
|
|
return {
|
|
|
+ devops: false,
|
|
|
pubkey: '',
|
|
|
pubkeyR: '',
|
|
|
captchaCode: '',
|
|
|
@@ -160,16 +161,19 @@ export const userMixin = {
|
|
|
},
|
|
|
loginBtn() {
|
|
|
if (this.userLogin.principal === '' || this.userLogin.principal === null) {
|
|
|
- this.$message.warning('手机号不能为空')
|
|
|
+ this.$message.warning('帐号不能为空')
|
|
|
return
|
|
|
}
|
|
|
if (this.userLogin.credential === '' || this.userLogin.credential === null) {
|
|
|
- this.$message.warning('短信验证码不能为空')
|
|
|
+ this.$message.warning('密码不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (this.userLogin.captchaCode === '' || this.userLogin.captchaCode === null) {
|
|
|
- this.$message.warning('图形验证码不能为空')
|
|
|
- return
|
|
|
+
|
|
|
+ if (!this.devops) {
|
|
|
+ if (this.userLogin.captchaCode === '' || this.userLogin.captchaCode === null) {
|
|
|
+ this.$message.warning('图形验证码不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const credential = this.userLogin.credential
|