【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)) {
|
||||
callback()
|
||||
} else {
|
||||
// eslint-disable-next-line standard/no-callback-literal
|
||||
callback('您的手机号码格式不正确!')
|
||||
callback(new Error('您的手机号码格式不正确!'))
|
||||
}
|
||||
},
|
||||
validateInputCode (rule, value, callback) {
|
||||
if (!value || this.verifiedCode === this.inputCodeContent) {
|
||||
callback()
|
||||
} else {
|
||||
// eslint-disable-next-line standard/no-callback-literal
|
||||
callback('您输入的验证码不正确!')
|
||||
callback(new Error('您输入的验证码不正确!'))
|
||||
}
|
||||
},
|
||||
generateCode (value) {
|
||||
|
||||
@@ -165,7 +165,6 @@ export default {
|
||||
} else {
|
||||
this.requestFailed(res)
|
||||
this.$store.dispatch('Logout')
|
||||
// eslint-disable-next-line prefer-promise-reject-errors
|
||||
reject()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Step1 from './Step1'
|
||||
// import Step1 from './Step1'
|
||||
import Step2 from './Step2'
|
||||
import Step3 from './Step3'
|
||||
import Step4 from './Step4'
|
||||
@@ -22,8 +22,7 @@ import Step4 from './Step4'
|
||||
export default {
|
||||
name: 'Alteration',
|
||||
components: {
|
||||
// eslint-disable-next-line vue/no-unused-components
|
||||
Step1,
|
||||
// Step1,
|
||||
Step2,
|
||||
Step3,
|
||||
Step4
|
||||
|
||||
Reference in New Issue
Block a user