Skip to content

Commit 61d403c

Browse files
committed
必须输入用户名
1 parent fdecc2d commit 61d403c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/views/login/Login.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ zh:
3030
<template #label>
3131
<span style="font-weight: bolder">用户名</span>
3232
</template>
33-
<el-input v-model.trim="form.username" placeholder="请输入用户名" @keyup.enter="$refs.passwordInput.focus()" autofocus disabled></el-input>
33+
<el-input v-model.trim="form.username" placeholder="请输入用户名" @keyup.enter="$refs.passwordInput.focus()" autofocus></el-input>
3434
</el-form-item>
3535
<el-form-item prop="password" :rules="passwordRules" ref="passwordFormItem">
3636
<template #label>
@@ -68,7 +68,7 @@ export default {
6868
data() {
6969
return {
7070
form: {
71-
username: 'admin',
71+
username: '',
7272
password: '',
7373
},
7474
passwordRules: [

0 commit comments

Comments
 (0)