瀏覽代碼

Update Login.vue

Use `a-input-password` instead of `a-input` for password field.
Pham Tien 4 年之前
父節點
當前提交
3aa473bf8b
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/views/user/Login.vue

+ 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="手机号登录">