Ver Código Fonte

fix: 欢迎语 - 客户昵称回显

zhengxy 2 anos atrás
pai
commit
56b753f65c

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

@@ -445,7 +445,7 @@ export default {
445 445
 
446 446
           let msg_list = dataInfo.welcomeMsg;
447 447
           msg_list.forEach((item) => {
448
-            item.content = item.content ? item.content.replace('%NICKNAME%', '「客户昵称」') : '';
448
+            item.content = item.content ? item.content.replaceAll('%NICKNAME%', '「客户昵称」') : '';
449 449
             item.attachments = item.attachments && item.attachments != '' ? JSON.parse(item.attachments) : [];
450 450
             if(item.weeks){
451 451
               item.weeks = item.weeks.split(',')

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

@@ -136,7 +136,7 @@ export default {
136 136
           this.name = res.rst.name;
137 137
           let msg_list = res.rst.msg_list;
138 138
           msg_list.forEach((item) => {
139
-            item.content = item.content ? item.content.replace('%NICKNAME%', '「客户昵称」') : '';
139
+            item.content = item.content ? item.content.replaceAll('%NICKNAME%', '「客户昵称」') : '';
140 140
             item.attachments = item.attachments && item.attachments != '' ? JSON.parse(item.attachments) : [];
141 141
             if(item.weeks){
142 142
               item.weeks = item.weeks.split(',')