【fix ESLint】src/views/user
This commit is contained in:
@@ -356,16 +356,14 @@ export default {
|
|||||||
if (!value || new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(value)) {
|
if (!value || new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(value)) {
|
||||||
callback()
|
callback()
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line standard/no-callback-literal
|
callback(new Error('您的手机号码格式不正确!'))
|
||||||
callback('您的手机号码格式不正确!')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
validateInputCode (rule, value, callback) {
|
validateInputCode (rule, value, callback) {
|
||||||
if (!value || this.verifiedCode === this.inputCodeContent) {
|
if (!value || this.verifiedCode === this.inputCodeContent) {
|
||||||
callback()
|
callback()
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line standard/no-callback-literal
|
callback(new Error('您输入的验证码不正确!'))
|
||||||
callback('您输入的验证码不正确!')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
generateCode (value) {
|
generateCode (value) {
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.requestFailed(res)
|
this.requestFailed(res)
|
||||||
this.$store.dispatch('Logout')
|
this.$store.dispatch('Logout')
|
||||||
// eslint-disable-next-line prefer-promise-reject-errors
|
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Step1 from './Step1'
|
// import Step1 from './Step1'
|
||||||
import Step2 from './Step2'
|
import Step2 from './Step2'
|
||||||
import Step3 from './Step3'
|
import Step3 from './Step3'
|
||||||
import Step4 from './Step4'
|
import Step4 from './Step4'
|
||||||
@@ -22,8 +22,7 @@ import Step4 from './Step4'
|
|||||||
export default {
|
export default {
|
||||||
name: 'Alteration',
|
name: 'Alteration',
|
||||||
components: {
|
components: {
|
||||||
// eslint-disable-next-line vue/no-unused-components
|
// Step1,
|
||||||
Step1,
|
|
||||||
Step2,
|
Step2,
|
||||||
Step3,
|
Step3,
|
||||||
Step4
|
Step4
|
||||||
|
|||||||
Reference in New Issue
Block a user