no message

Former-commit-id: c80cdb4d00c3017aebd3275bcc0a46845f5f9231
Former-commit-id: 10440e0338dbc27889ac9afa46dceb2d431bf479
Former-commit-id: 754870f69d12484af51bce1d97ef8140201f682f
This commit is contained in:
李杨
2018-03-27 22:28:38 +08:00
parent 9e45e6a5cb
commit 6e4516cc0b

View File

@@ -110,12 +110,16 @@ export default {
await sleep(1000) await sleep(1000)
for (const propName in this.$refs) { for (const propName in this.$refs) {
if (/^kb-\d+-[a-zA-Z0-9-]+-kb$/.test(propName) && this.$refs.hasOwnProperty(propName)) { if (/^kb-\d+-[a-zA-Z0-9-]+-kb$/.test(propName) && this.$refs.hasOwnProperty(propName)) {
try {
const input = this.$refs[propName].$refs.input const input = this.$refs[propName].$refs.input
if (input) { if (input) {
input.addEventListener('keydown', e => { input.addEventListener('keydown', e => {
console.log(e) console.log(e)
}) })
} }
} catch (error) {
console.log(error)
}
} }
} }
} }