Browse Source

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

zhengxy 2 years ago
parent
commit
56b753f65c

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

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

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

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