|
@@ -7,7 +7,6 @@
|
|
|
:type="canSee ? 'text' : 'password'"
|
|
|
placeholder="请输入访问密码,限20位"
|
|
|
:maxlength="20"
|
|
|
- oninput="value=value.replace(/[^\a-\z\A-\Z0-9\~!@#$%^&*]/g,'')"
|
|
|
v-model="info.password"
|
|
|
autocomplete="new-password"
|
|
|
@keydown.enter="onInputEnter"
|
|
@@ -34,6 +33,14 @@ export default {
|
|
|
info:'info'
|
|
|
})
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ 'info.password': {
|
|
|
+ handler(v) {
|
|
|
+ console.log(123);
|
|
|
+ this.info.password = v.replace(/[^\w]/g, '').replace(/_/g, '')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
onInputEnter(e) {
|
|
|
e.target.blur()
|