From 608552f7f88e56288be2cf462573db9155cae9ab Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Mon, 27 Sep 2021 14:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cool/modules/base/components/dept/check.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cool/modules/base/components/dept/check.vue b/src/cool/modules/base/components/dept/check.vue index 0b5c2cc..f1380b1 100644 --- a/src/cool/modules/base/components/dept/check.vue +++ b/src/cool/modules/base/components/dept/check.vue @@ -109,7 +109,9 @@ export default defineComponent({ // 监听选择 function onCheckChange() { - emit("update:modelValue", refs.value.tree.getCheckedKeys()); + if (refs.value.tree) { + emit("update:modelValue", refs.value.tree.getCheckedKeys()); + } } // 监听过滤