Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
zxiansheng committed Apr 24, 2020
1 parent 738f7d5 commit fac9fde
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,7 @@
v-model="account"
name="account"
>
<span>{{ errors[0] }}</span>
</validation-provider>
<validation-provider
rules="required|min:6|max:12"
v-slot="{ errors }"
>
<input
style="width:100%"
class="form-field animation a3"
placeholder="用户昵称"
v-model="nickname"
name="nickname"
>
<span>{{ errors[0] }}</span>
<span style="color:red;">{{ errors[0] }}</span>
</validation-provider>
<validation-provider
rules="r-pwd|min:8|max:12"
Expand All @@ -47,7 +34,7 @@
placeholder="密码"
v-model="password"
>
<span>{{ errors[0] }}</span>
<span style="color:red;">{{ errors[0] }}</span>
</validation-provider>
</ValidationObserver>
<p class="animation a5">
Expand Down Expand Up @@ -93,7 +80,6 @@ extend('a-required', {
...required,
message: '账号不能为空'
})
extend('required', required)
extend('r-pwd', {
...required,
message: '密码不能为空'
Expand Down

0 comments on commit fac9fde

Please sign in to comment.