no message
Former-commit-id: 479b69e5ca93b5efa8a2173db2d062bf67fb76cd Former-commit-id: be1b14729acd8041ab5e8867dc12e20d401a0fce Former-commit-id: 968b7de146819219b88472ff82b28ea3db0dba2c
This commit is contained in:
parent
6e4516cc0b
commit
201e39a2c4
|
|
@ -21,6 +21,7 @@
|
|||
"github-markdown-css": "^2.10.0",
|
||||
"highlight.js": "^9.12.0",
|
||||
"js-cookie": "^2.2.0",
|
||||
"lodash.get": "^4.4.2",
|
||||
"marked": "^0.3.9",
|
||||
"mockjs": "^1.0.1-beta3",
|
||||
"papaparse": "^4.3.6",
|
||||
|
|
|
|||
|
|
@ -110,15 +110,11 @@ export default {
|
|||
await sleep(1000)
|
||||
for (const propName in this.$refs) {
|
||||
if (/^kb-\d+-[a-zA-Z0-9-]+-kb$/.test(propName) && this.$refs.hasOwnProperty(propName)) {
|
||||
try {
|
||||
const input = this.$refs[propName].$refs.input
|
||||
if (input) {
|
||||
input.addEventListener('keydown', e => {
|
||||
console.log(e)
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
const input = require('lodash.get')(this.$refs[propName], '$refs.input', false)
|
||||
if (input) {
|
||||
input.addEventListener('keydown', e => {
|
||||
console.log(e)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue