Browse Source

fix: 欢迎语 - 插入客户昵称bug

zhengxy 2 years ago
parent
commit
efa4588212

+ 2 - 0
project/src/components/assembly/editCon.vue

@@ -380,6 +380,8 @@ export default {
380 380
       } else {
381 381
         this.content += myValue
382 382
       }
383
+      // 子组件更新后 => 触发父组件更新content内容
384
+      this.$emit('editContent', this.content)
383 385
     },
384 386
     radarDefine (val) { //雷达确定
385 387
       let now_rew = this.attachments

+ 1 - 1
project/src/components/channelCode/createChannelCode.vue

@@ -643,7 +643,7 @@ export default {
643 643
         }else{
644 644
           item.weeks = ''
645 645
         }
646
-        item.content = item.content.replace('「客户昵称」', '%NICKNAME%')
646
+        item.content = item.content.replaceAll('「客户昵称」', '%NICKNAME%')
647 647
         item.attachments = item.attachments == '' || item.attachments&&item.attachments.length == 0 ? '' : JSON.stringify(item.attachments)
648 648
       })
649 649
       this.$loading(this.$loadingConfig)

+ 1 - 1
project/src/components/customOperate/welcom_message.vue

@@ -295,7 +295,7 @@ export default {
295 295
           item.weeks = ''
296 296
         }
297 297
         // item.weeks = item.weeks.join(',');
298
-        item.content = item.content.replace('「客户昵称」', '%NICKNAME%')
298
+        item.content = item.content.replaceAll('「客户昵称」', '%NICKNAME%')
299 299
         item.attachments = item.attachments == '' || item.attachments&&item.attachments.length == 0 ? '' : JSON.stringify(item.attachments)
300 300
       })
301 301