Sfoglia il codice sorgente

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

zhengxy 2 anni fa
parent
commit
efa4588212

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

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

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

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

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

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