Procházet zdrojové kódy

密码框禁止复制

cxmo před 1 rokem
rodič
revize
99a1b4c9f5

+ 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">