askbot-dragon 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +6 -6
  3. package/dragon.iml +7 -7
  4. package/package.json +56 -56
  5. package/public/index.html +43 -43
  6. package/src/App.vue +31 -31
  7. package/src/api/index.js +1 -1
  8. package/src/api/mock.http +2 -2
  9. package/src/api/requestUrl.js +185 -185
  10. package/src/assets/js/AliyunlssUtil.js +92 -92
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/script.js +36 -36
  13. package/src/assets/less/common.css +6773 -6773
  14. package/src/assets/less/converSationContainer/common.less +191 -191
  15. package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
  16. package/src/assets/less/iconfont.css +37 -37
  17. package/src/assets/less/ticketMessage.less +211 -211
  18. package/src/components/ActionAlertIframe.vue +112 -112
  19. package/src/components/AiGuide.vue +467 -467
  20. package/src/components/AnswerDocknowledge.vue +213 -176
  21. package/src/components/AskIFrame.vue +15 -15
  22. package/src/components/ConversationContainer.vue +3996 -3996
  23. package/src/components/FileType.vue +86 -86
  24. package/src/components/Message.vue +27 -27
  25. package/src/components/actionSatisfaction.vue +107 -107
  26. package/src/components/actionSendToBot.vue +62 -62
  27. package/src/components/answerDissatisfaction.vue +62 -62
  28. package/src/components/answerRadio.vue +76 -76
  29. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  30. package/src/components/ask-components/Msgloading.vue +37 -37
  31. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  32. package/src/components/askVideo.vue +138 -138
  33. package/src/components/assetDetails.vue +370 -370
  34. package/src/components/assetMessage.vue +228 -228
  35. package/src/components/associationIntention.vue +299 -299
  36. package/src/components/attachmentPreview.vue +90 -90
  37. package/src/components/botActionSatisfactor.vue +68 -68
  38. package/src/components/chatContent.vue +513 -513
  39. package/src/components/feedBack.vue +136 -136
  40. package/src/components/fielListView.vue +312 -312
  41. package/src/components/file/AliyunOssComponents.vue +108 -108
  42. package/src/components/formTemplate.vue +3361 -3361
  43. package/src/components/loadingProcess.vue +164 -164
  44. package/src/components/message/ActionAlertIframe.vue +112 -112
  45. package/src/components/message/ShopMessage.vue +164 -164
  46. package/src/components/message/TextMessage.vue +924 -924
  47. package/src/components/message/TicketMessage.vue +177 -177
  48. package/src/components/message/swiper/index.js +4 -4
  49. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  50. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  51. package/src/components/msgLoading.vue +231 -231
  52. package/src/components/myPopup.vue +70 -70
  53. package/src/components/popup.vue +227 -227
  54. package/src/components/previewDoc.vue +85 -85
  55. package/src/components/receiverMessagePlatform.vue +65 -65
  56. package/src/components/recommend.vue +89 -89
  57. package/src/components/selector/hOption.vue +20 -20
  58. package/src/components/selector/hSelector.vue +199 -199
  59. package/src/components/selector/hWrapper.vue +216 -216
  60. package/src/components/senderMessagePlatform.vue +50 -50
  61. package/src/components/source/BotMessage.vue +24 -24
  62. package/src/components/source/CustomMessage.vue +24 -24
  63. package/src/components/test.vue +260 -260
  64. package/src/components/tree.vue +294 -294
  65. package/src/components/utils/AliyunIssUtil.js +72 -72
  66. package/src/components/utils/ckeditor.js +155 -155
  67. package/src/components/utils/ckeditorImageUpload/command.js +109 -109
  68. package/src/components/utils/ckeditorImageUpload/editing.js +11 -11
  69. package/src/components/utils/ckeditorImageUpload/plugin-image.js +11 -11
  70. package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +40 -40
  71. package/src/components/utils/ckeditorfileUpload/common.js +111 -111
  72. package/src/components/utils/ckeditorfileUpload/editing.js +11 -11
  73. package/src/components/utils/ckeditorfileUpload/plugin_file.js +11 -11
  74. package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +34 -34
  75. package/src/components/utils/format_date.js +25 -25
  76. package/src/components/utils/index.js +6 -6
  77. package/src/components/utils/math_utils.js +29 -29
  78. package/src/components/voiceComponent.vue +119 -119
  79. package/src/main.js +60 -60
  80. package/vue.config.js +47 -47
@@ -1,300 +1,300 @@
1
- <template>
2
- <div class="association-intention">
3
- <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && !(msg.recommend&& msg.recommend.status)">
4
- <!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>-->
5
- <template v-if="msg.dispatchServiceType === 'CHATGPT'">
6
- <p style="white-space: pre-wrap;">
7
- {{msg.content | msgHtmlContent}}
8
- </p>
9
- </template>
10
- <template v-else>
11
- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
12
- </template>
13
- </div>
14
- <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
15
- <template v-if="msg.dispatchServiceType === 'CHATGPT'">
16
- <p style="white-space: pre-wrap;">
17
- {{msg.content | msgHtmlContent}}
18
- </p>
19
- </template>
20
- <template v-else>
21
- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
22
- </template>
23
- <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
24
- </div>
25
- <div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend && msg.content.recommend.status)">
26
- <p v-html="$options.filters.imageStyle(msg.content.html)" @click="lookAttach($event)"></p>
27
- </div>
28
- <div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend && msg.content.recommend.status)">
29
- <p v-html="$options.filters.imageStyle(msg.content.html)" class="answer-rich-text" @click="lookAttach($event)"></p>
30
- <Recommend :msg="msg.content" @onRadioClickReco="onRadioClickReco"></Recommend>
31
- </div>
32
- <div v-else-if="msgType === 'answer_image'" >
33
- <div
34
- class="association-img"
35
- v-if="msg.content.url"
36
- >
37
- <!-- LPY 原生宽度适配有bug,弃用 -->
38
- <template v-if="sourceOhm === 'ohm' && !isOhmPc">
39
- <viewer :images="[msg.content.url]">
40
- <img
41
- v-for="(src,index) in [msg.content.url]"
42
- :src="src"
43
- :key="index"
44
- style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
45
- class="img-class"
46
- />
47
- </viewer>
48
- </template>
49
- <img
50
- v-else
51
- :src="msg.content.url"
52
- style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
53
- @click="onImageClick(msg.content.url)"
54
- class="img-class"
55
- />
56
- </div>
57
- <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
58
- </div>
59
- <div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'">
60
- <div class="association-img" v-if="msg.content.url">
61
- <ask-video :msg="msg" :url="msg.content.url" :local-url="msg.content.localUrl"
62
- :progress="msg.content.progress"></ask-video>
63
- </div>
64
- <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
65
- </div>
66
- <previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
67
- </div>
68
- </template>
69
-
70
- <script>
71
- import askVideo from "./askVideo";
72
- import Recommend from "./recommend";
73
- import previewDoc from "./previewDoc";
74
- export default {
75
- name: "associationIntention",
76
- components: {Recommend, askVideo, previewDoc},
77
- props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc'],
78
- filters: {
79
- imageStyle: function (html) {
80
- //富文本内图片自适应高度宽度
81
- const regex = new RegExp("<img", "gi");
82
- return html.replace(
83
- regex,
84
- "<img style='max-width: 230px;border-radius: 25px;' onclick='imageOnClick(this)'"
85
- );
86
- },
87
- msgHtmlContent:function (content){
88
- var reg = /<br\/>/g;
89
- let msg = content.replace(reg,'\n');
90
- return msg
91
- },
92
- },
93
- data() {
94
- return {
95
- previewHref: ""
96
- }
97
- },
98
- mounted() {
99
- },
100
- methods:{
101
- // 将匹配结果替换表情图片
102
- emotion(res) {
103
- let word = res.replace(/#|;/gi, "");
104
- const list = [
105
- "微笑",
106
- "撇嘴",
107
- "色",
108
- "发呆",
109
- "得意",
110
- "流泪",
111
- "害羞",
112
- "闭嘴",
113
- "睡",
114
- "大哭",
115
- "尴尬",
116
- "发怒",
117
- "调皮",
118
- "呲牙",
119
- "惊讶",
120
- "难过",
121
- "酷",
122
- "冷汗",
123
- "抓狂",
124
- "吐",
125
- "偷笑",
126
- "可爱",
127
- "白眼",
128
- "傲慢",
129
- "饥饿",
130
- "困",
131
- "惊恐",
132
- "流汗",
133
- "憨笑",
134
- "大兵",
135
- "奋斗",
136
- "咒骂",
137
- "疑问",
138
- "嘘",
139
- "晕",
140
- "折磨",
141
- "衰",
142
- "骷髅",
143
- "敲打",
144
- "再见",
145
- "擦汗",
146
- "抠鼻",
147
- "鼓掌",
148
- "糗大了",
149
- "坏笑",
150
- "左哼哼",
151
- "右哼哼",
152
- "哈欠",
153
- "鄙视",
154
- "委屈",
155
- "快哭了",
156
- "阴险",
157
- "亲亲",
158
- "吓",
159
- "可怜",
160
- "菜刀",
161
- "西瓜",
162
- "啤酒",
163
- "篮球",
164
- "乒乓",
165
- "咖啡",
166
- "饭",
167
- "猪头",
168
- "玫瑰",
169
- "凋谢",
170
- "示爱",
171
- "爱心",
172
- "心碎",
173
- "蛋糕",
174
- "闪电",
175
- "炸弹",
176
- "刀",
177
- "足球",
178
- "瓢虫",
179
- "便便",
180
- "月亮",
181
- "太阳",
182
- "礼物",
183
- "拥抱",
184
- "强",
185
- "弱",
186
- "握手",
187
- "胜利",
188
- "抱拳",
189
- "勾引",
190
- "拳头",
191
- "差劲",
192
- "爱你",
193
- "不",
194
- "可以",
195
- "爱情",
196
- "飞吻",
197
- "跳跳",
198
- "发抖",
199
- "怄火",
200
- "转圈",
201
- "磕头",
202
- "回头",
203
- "跳绳",
204
- "挥手",
205
- "激动",
206
- "街舞",
207
- "献吻",
208
- "左太极",
209
- "右太极",
210
- ];
211
- let index = list.indexOf(word);
212
- return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${
213
- index + 1
214
- }.png" align="middle">`;
215
- },
216
- onRadioClickReco(id, name, apikey) {
217
- this.$emit("onRadioClick", id, name, apikey);
218
- },
219
- onImageClick(url){
220
- this.$emit('onImageClick',url)
221
- },
222
- msgContent(content){
223
- console.debug('215',content)
224
- var regBr = /<br\/>/g;
225
- let msg = content.replace(regBr,"\n");
226
- var reg = /<[^>]+>/g;
227
- return reg.test(msg);
228
-
229
- },
230
- //预览图片
231
- lookAttach(e){
232
- if (e.target.localName == 'a'){
233
- console.debug('lookImage',e.target.href)
234
- this.previewHref = e.target.href
235
- this.$refs.previewDoc.previewShowPopup = true
236
- // let url = ''
237
- // try {
238
- // url = btoa(e.target.href)
239
- // }
240
- // catch {
241
- // url = encodeURIComponent(btoa(e.target.href))
242
- // }
243
- // window.open('https://test.open.askbot.cn/kkfileview/onlinePreview?url=' + url)
244
- // e.stopPropagation()
245
- // e.preventDefault()
246
- e.returnValue = false
247
- }
248
- },
249
- },
250
- watch:{
251
- isOpen:{
252
- handler(value){
253
- if (value){
254
- let reg = this.msg.content.html
255
- if (reg){
256
- reg = reg.replace('<a',"<span class='isReplace'")
257
- reg = reg.replace('</a>','</span>')
258
- console.debug('reg',reg)
259
- this.msg.content.html = reg
260
- }
261
-
262
- }
263
- else {
264
- let reg = this.msg.content.html
265
- console.debug('reg',reg)
266
- if (reg){
267
- reg = reg.replace("<span class='isReplace'","<a download")
268
- let reg2 = reg
269
- reg2 = reg2.replace('</span>','</a>')
270
- this.msg.content.html = reg2
271
- console.debug('reg',reg2)
272
- }
273
- }
274
- }
275
- }
276
- }
277
- }
278
- </script>
279
-
280
-
281
- <style scoped lang="less">
282
- @import "../assets/less/converSationContainer/common";
283
- .association-intention{
284
- .association-img{
285
- /*display: flex;
286
- align-items: center;
287
- justify-content: center;*/
288
-
289
- }
290
- .answer-rich-text{
291
- /*padding-bottom: 10px;
292
- border-bottom: 1px solid #EEEEEE;*/
293
- }
294
- /deep/a{
295
- disabled:true
296
- //pointer-events: none;
297
- }
298
- }
299
-
1
+ <template>
2
+ <div class="association-intention">
3
+ <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && !(msg.recommend&& msg.recommend.status)">
4
+ <!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>-->
5
+ <template v-if="msg.dispatchServiceType === 'CHATGPT'">
6
+ <p style="white-space: pre-wrap;">
7
+ {{msg.content | msgHtmlContent}}
8
+ </p>
9
+ </template>
10
+ <template v-else>
11
+ <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
12
+ </template>
13
+ </div>
14
+ <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
15
+ <template v-if="msg.dispatchServiceType === 'CHATGPT'">
16
+ <p style="white-space: pre-wrap;">
17
+ {{msg.content | msgHtmlContent}}
18
+ </p>
19
+ </template>
20
+ <template v-else>
21
+ <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
22
+ </template>
23
+ <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
24
+ </div>
25
+ <div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend && msg.content.recommend.status)">
26
+ <p v-html="$options.filters.imageStyle(msg.content.html)" @click="lookAttach($event)"></p>
27
+ </div>
28
+ <div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend && msg.content.recommend.status)">
29
+ <p v-html="$options.filters.imageStyle(msg.content.html)" class="answer-rich-text" @click="lookAttach($event)"></p>
30
+ <Recommend :msg="msg.content" @onRadioClickReco="onRadioClickReco"></Recommend>
31
+ </div>
32
+ <div v-else-if="msgType === 'answer_image'" >
33
+ <div
34
+ class="association-img"
35
+ v-if="msg.content.url"
36
+ >
37
+ <!-- LPY 原生宽度适配有bug,弃用 -->
38
+ <template v-if="sourceOhm === 'ohm' && !isOhmPc">
39
+ <viewer :images="[msg.content.url]">
40
+ <img
41
+ v-for="(src,index) in [msg.content.url]"
42
+ :src="src"
43
+ :key="index"
44
+ style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
45
+ class="img-class"
46
+ />
47
+ </viewer>
48
+ </template>
49
+ <img
50
+ v-else
51
+ :src="msg.content.url"
52
+ style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
53
+ @click="onImageClick(msg.content.url)"
54
+ class="img-class"
55
+ />
56
+ </div>
57
+ <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
58
+ </div>
59
+ <div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'">
60
+ <div class="association-img" v-if="msg.content.url">
61
+ <ask-video :msg="msg" :url="msg.content.url" :local-url="msg.content.localUrl"
62
+ :progress="msg.content.progress"></ask-video>
63
+ </div>
64
+ <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
65
+ </div>
66
+ <previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
67
+ </div>
68
+ </template>
69
+
70
+ <script>
71
+ import askVideo from "./askVideo";
72
+ import Recommend from "./recommend";
73
+ import previewDoc from "./previewDoc";
74
+ export default {
75
+ name: "associationIntention",
76
+ components: {Recommend, askVideo, previewDoc},
77
+ props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc'],
78
+ filters: {
79
+ imageStyle: function (html) {
80
+ //富文本内图片自适应高度宽度
81
+ const regex = new RegExp("<img", "gi");
82
+ return html.replace(
83
+ regex,
84
+ "<img style='max-width: 230px;border-radius: 25px;' onclick='imageOnClick(this)'"
85
+ );
86
+ },
87
+ msgHtmlContent:function (content){
88
+ var reg = /<br\/>/g;
89
+ let msg = content.replace(reg,'\n');
90
+ return msg
91
+ },
92
+ },
93
+ data() {
94
+ return {
95
+ previewHref: ""
96
+ }
97
+ },
98
+ mounted() {
99
+ },
100
+ methods:{
101
+ // 将匹配结果替换表情图片
102
+ emotion(res) {
103
+ let word = res.replace(/#|;/gi, "");
104
+ const list = [
105
+ "微笑",
106
+ "撇嘴",
107
+ "色",
108
+ "发呆",
109
+ "得意",
110
+ "流泪",
111
+ "害羞",
112
+ "闭嘴",
113
+ "睡",
114
+ "大哭",
115
+ "尴尬",
116
+ "发怒",
117
+ "调皮",
118
+ "呲牙",
119
+ "惊讶",
120
+ "难过",
121
+ "酷",
122
+ "冷汗",
123
+ "抓狂",
124
+ "吐",
125
+ "偷笑",
126
+ "可爱",
127
+ "白眼",
128
+ "傲慢",
129
+ "饥饿",
130
+ "困",
131
+ "惊恐",
132
+ "流汗",
133
+ "憨笑",
134
+ "大兵",
135
+ "奋斗",
136
+ "咒骂",
137
+ "疑问",
138
+ "嘘",
139
+ "晕",
140
+ "折磨",
141
+ "衰",
142
+ "骷髅",
143
+ "敲打",
144
+ "再见",
145
+ "擦汗",
146
+ "抠鼻",
147
+ "鼓掌",
148
+ "糗大了",
149
+ "坏笑",
150
+ "左哼哼",
151
+ "右哼哼",
152
+ "哈欠",
153
+ "鄙视",
154
+ "委屈",
155
+ "快哭了",
156
+ "阴险",
157
+ "亲亲",
158
+ "吓",
159
+ "可怜",
160
+ "菜刀",
161
+ "西瓜",
162
+ "啤酒",
163
+ "篮球",
164
+ "乒乓",
165
+ "咖啡",
166
+ "饭",
167
+ "猪头",
168
+ "玫瑰",
169
+ "凋谢",
170
+ "示爱",
171
+ "爱心",
172
+ "心碎",
173
+ "蛋糕",
174
+ "闪电",
175
+ "炸弹",
176
+ "刀",
177
+ "足球",
178
+ "瓢虫",
179
+ "便便",
180
+ "月亮",
181
+ "太阳",
182
+ "礼物",
183
+ "拥抱",
184
+ "强",
185
+ "弱",
186
+ "握手",
187
+ "胜利",
188
+ "抱拳",
189
+ "勾引",
190
+ "拳头",
191
+ "差劲",
192
+ "爱你",
193
+ "不",
194
+ "可以",
195
+ "爱情",
196
+ "飞吻",
197
+ "跳跳",
198
+ "发抖",
199
+ "怄火",
200
+ "转圈",
201
+ "磕头",
202
+ "回头",
203
+ "跳绳",
204
+ "挥手",
205
+ "激动",
206
+ "街舞",
207
+ "献吻",
208
+ "左太极",
209
+ "右太极",
210
+ ];
211
+ let index = list.indexOf(word);
212
+ return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${
213
+ index + 1
214
+ }.png" align="middle">`;
215
+ },
216
+ onRadioClickReco(id, name, apikey) {
217
+ this.$emit("onRadioClick", id, name, apikey);
218
+ },
219
+ onImageClick(url){
220
+ this.$emit('onImageClick',url)
221
+ },
222
+ msgContent(content){
223
+ console.debug('215',content)
224
+ var regBr = /<br\/>/g;
225
+ let msg = content.replace(regBr,"\n");
226
+ var reg = /<[^>]+>/g;
227
+ return reg.test(msg);
228
+
229
+ },
230
+ //预览图片
231
+ lookAttach(e){
232
+ if (e.target.localName == 'a'){
233
+ console.debug('lookImage',e.target.href)
234
+ this.previewHref = e.target.href
235
+ this.$refs.previewDoc.previewShowPopup = true
236
+ // let url = ''
237
+ // try {
238
+ // url = btoa(e.target.href)
239
+ // }
240
+ // catch {
241
+ // url = encodeURIComponent(btoa(e.target.href))
242
+ // }
243
+ // window.open('https://test.open.askbot.cn/kkfileview/onlinePreview?url=' + url)
244
+ // e.stopPropagation()
245
+ // e.preventDefault()
246
+ e.returnValue = false
247
+ }
248
+ },
249
+ },
250
+ watch:{
251
+ isOpen:{
252
+ handler(value){
253
+ if (value){
254
+ let reg = this.msg.content.html
255
+ if (reg){
256
+ reg = reg.replace('<a',"<span class='isReplace'")
257
+ reg = reg.replace('</a>','</span>')
258
+ console.debug('reg',reg)
259
+ this.msg.content.html = reg
260
+ }
261
+
262
+ }
263
+ else {
264
+ let reg = this.msg.content.html
265
+ console.debug('reg',reg)
266
+ if (reg){
267
+ reg = reg.replace("<span class='isReplace'","<a download")
268
+ let reg2 = reg
269
+ reg2 = reg2.replace('</span>','</a>')
270
+ this.msg.content.html = reg2
271
+ console.debug('reg',reg2)
272
+ }
273
+ }
274
+ }
275
+ }
276
+ }
277
+ }
278
+ </script>
279
+
280
+
281
+ <style scoped lang="less">
282
+ @import "../assets/less/converSationContainer/common";
283
+ .association-intention{
284
+ .association-img{
285
+ /*display: flex;
286
+ align-items: center;
287
+ justify-content: center;*/
288
+
289
+ }
290
+ .answer-rich-text{
291
+ /*padding-bottom: 10px;
292
+ border-bottom: 1px solid #EEEEEE;*/
293
+ }
294
+ /deep/a{
295
+ disabled:true
296
+ //pointer-events: none;
297
+ }
298
+ }
299
+
300
300
  </style>