Эх сурвалжийг харах

Update Login.vue

Use `a-input-password` instead of `a-input` for password field.
Pham Tien 4 жил өмнө
parent
commit
3aa473bf8b

+ 2 - 4
src/views/user/Login.vue

@@ -29,10 +29,8 @@
           </a-form-item>
 
           <a-form-item>
-            <a-input
+            <a-input-password
               size="large"
-              type="password"
-              autocomplete="false"
               placeholder="密码: admin or ant.design"
               v-decorator="[
                 'password',
@@ -40,7 +38,7 @@
               ]"
             >
               <a-icon slot="prefix" type="lock" :style="{ color: 'rgba(0,0,0,.25)' }"/>
-            </a-input>
+            </a-input-password>
           </a-form-item>
         </a-tab-pane>
         <a-tab-pane key="tab2" tab="手机号登录">