From 3f4cbce7ae3ab97f3ccfeb06c9df13dc75c51adc Mon Sep 17 00:00:00 2001 From: dengbf Date: Mon, 3 Nov 2025 17:07:24 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=20=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E7=BB=84=E4=BB=B6=E5=9B=9E=E8=BD=A6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/plugins/TsForm/TsFormSelect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/plugins/TsForm/TsFormSelect.vue b/src/resources/plugins/TsForm/TsFormSelect.vue index f31f86da..aeff8e6e 100755 --- a/src/resources/plugins/TsForm/TsFormSelect.vue +++ b/src/resources/plugins/TsForm/TsFormSelect.vue @@ -1129,7 +1129,7 @@ export default { }, toggleSelect(item) { //选中调用的方法 - if (item && item._disabled) { + if (item && item._disabled || !item) { return; } let value = item[this.valueName]; @@ -1261,7 +1261,7 @@ export default { return; } else { - this.nodeList.unshift(this.addItem); + this.addItem && this.nodeList.unshift(this.addItem); if (this.$listeners && this.$listeners['on-create']) { this.$emit('on-create', keyval); } -- Gitee