Skip to content

Commit

Permalink
fix: remove redundant validators
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed Oct 5, 2018
1 parent 7ca4ab7 commit e0d8efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
6 changes: 2 additions & 4 deletions src/view/Login/index.vue → src/view/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
</template>

<script>
import { validator } from './validator'
import { userLogin } from 'SERVICES'
export default {
Expand All @@ -54,15 +53,14 @@ export default {
rules: {
username: [
{
// Set `this` value into vueComponent
validator: validator.bind(this),
required: true,
message: '请输入用户名',
trigger: 'blur'
}
],
password: [
{
validator: validator.bind(this),
required: true,
message: '请输入密码',
trigger: 'blur'
}
Expand Down
7 changes: 0 additions & 7 deletions src/view/Login/validator.js

This file was deleted.

0 comments on commit e0d8efa

Please sign in to comment.