From 249dac9448f433675b69cc557f787adc01300107 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Thu, 19 May 2022 15:21:19 +0800
Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components

---
 forms/input/CInput.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/forms/input/CInput.vue b/forms/input/CInput.vue
index ca251f7..d23c616 100644
--- a/forms/input/CInput.vue
+++ b/forms/input/CInput.vue
@@ -54,7 +54,7 @@
     },
     computed: {
         value() {
-            return (this.itemRes.formData[this.itemRes.name] || '').replace(
+            return ((this.itemRes.formData[this.itemRes.name] || '') + '').replace(
                 /[\n\r]/g,
                 ''
             );
@@ -63,7 +63,7 @@
     methods: {
         hanldeChange(evt) {
             // 小程序中,可以粘贴换行符进来
-            const changeValue = (evt || '').replace(/[\n\r]/g, '');
+            const changeValue = ((evt || '') + '').replace(/[\n\r]/g, '');
             this.itemRes.onChange(changeValue);
         },
     },

--
Gitblit v1.9.1