From 8ee8b95561e2103bbebeab295c32379814610a57 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Wed, 18 Oct 2023 16:27:17 +0800
Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components

---
 forms/select/CSelect.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/forms/select/CSelect.vue b/forms/select/CSelect.vue
index 570c3b0..3b32ef1 100644
--- a/forms/select/CSelect.vue
+++ b/forms/select/CSelect.vue
@@ -125,8 +125,12 @@
     },
     methods: {
         handleChange(evt) {
-            const item = this.options[evt.value];
-            this.itemRes.onChange(item[this.optionKey]);
+            if (typeof this.optionKey === 'undefined') {
+                this.itemRes.onChange();
+            } else {
+                const item = this.options[evt.value];
+                this.itemRes.onChange(item[this.optionKey]);
+            }
         },
         onGoToSelectorPage() {
             let url = this.selectByPage;

--
Gitblit v1.9.1