浏览代码

密码框禁止复制

cxmo 1 年之前
父节点
当前提交
99a1b4c9f5
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 2 0
      src/views/login_manage/ForgetPassModel.vue
  2. 1 0
      src/views/login_manage/OrdinaryModel.vue

+ 2 - 0
src/views/login_manage/ForgetPassModel.vue

@@ -76,6 +76,7 @@
                             type="password" show-password
                             v-model.trim="passForm.pass1"
                             auto-complete="off"
+                            @copy.native.capture.prevent="()=>{return false}"
                             placeholder="请输入新密码">
                         </el-input>
                     </el-form-item>
@@ -84,6 +85,7 @@
                             type="password" show-password
                             v-model.trim="passForm.pass2"
                             auto-complete="off"
+                            @copy.native.capture.prevent="()=>{return false}"
                             placeholder="请确认新密码">
                         </el-input>
                     </el-form-item>

+ 1 - 0
src/views/login_manage/OrdinaryModel.vue

@@ -24,6 +24,7 @@
                     v-model="form.checkPass"
                     auto-complete="off"
                     placeholder="请输入密码"
+                    @copy.native.capture.prevent="()=>{return false}"
                 />
                 <span class="inline-message el-form-item__error" 
                     v-show="(loginCheck||accountCheck)&&form.checkPass.length">