From a4a912ff5f0d3dd2170c1ab0eea15634c6ef10b9 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Mon, 20 Feb 2023 10:02:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/autocomplete/index.vue | 2 +- src/utils/directive.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/autocomplete/index.vue b/src/components/autocomplete/index.vue index 2fa6af3..e66aa91 100644 --- a/src/components/autocomplete/index.vue +++ b/src/components/autocomplete/index.vue @@ -16,7 +16,7 @@ export default { params: Object, config: Object, // config: { - // serveTarget: {}, // 接口 + // serveTarget: {}, // 远程搜索接口 // autocomplateKey: "", //远程搜索接口参数名 // querykey: "", //查询接口参数名 // }, diff --git a/src/utils/directive.js b/src/utils/directive.js index 8b12bc1..b2a4833 100644 --- a/src/utils/directive.js +++ b/src/utils/directive.js @@ -23,6 +23,9 @@ Vue.directive("checkNum", { }); }, unbind(el) { - el.children[0].removeEventListener("keyup"); + // console.log("el.children", el.children); + // if (el.children.length) { + // el.children[0].removeEventListener("keyup"); + // } }, });