askbot-dragon 1.6.85-beta → 1.6.87-beta

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.6.85-beta",
3
+ "version": "1.6.87-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -4680,7 +4680,7 @@ export default {
4680
4680
  "answerId": null,
4681
4681
  "apiKey": "14f02c001a29434d9aaa2c2e581a1a17",
4682
4682
  "scope": "INTENT",
4683
- "name": "打印机卡纸怎么办",
4683
+ "name": "<p>打印机卡纸怎么办</p>",
4684
4684
  "value": "155539"
4685
4685
  },
4686
4686
  {
@@ -8,7 +8,7 @@
8
8
  <div v-for="(option, index) in showOptions" class="options-item"
9
9
  :class="index !== msg.content.options.length - 1 ? 'recommend-item' : 'last-item'" :key="msg.nodeId + '_' + index"
10
10
  @click="radioClick(msg, option, index)">
11
- <span> {{ option.name }}</span>
11
+ <span> {{ getFilteredName(option.name) }}</span>
12
12
  <i class="arsenal_icon arsenalangle-right-solid"></i>
13
13
  </div>
14
14
  </div>
@@ -36,7 +36,7 @@ export default {
36
36
  mounted() {
37
37
  console.log(this.msg, 'msg');
38
38
  // 关键词推荐 前端分页
39
- if ((this.msg.id == "recdNodeId" && this.msg.content.options.length > this.pageSize) || this.msg.content.groupVisible) {
39
+ if ((this.msg.id == "recdNodeId" || this.msg.content.groupVisible) && this.msg.content.options.length > this.pageSize) {
40
40
  this.pageSize = this.msg.content.groupNumber || 5;
41
41
  this.formatOptions = this.chunkArray(this.msg.content.options, this.pageSize);
42
42
  this.activeIndex = 0;
@@ -49,6 +49,13 @@ export default {
49
49
  this.judgeIsMobile();
50
50
  },
51
51
  methods: {
52
+ getFilteredName(name) {
53
+ if (typeof name === 'string') {
54
+ return name.replace(/<\/?p>/g, '');
55
+ } else {
56
+ return name;
57
+ }
58
+ },
52
59
  showMore(){
53
60
  if (this.activeIndex == this.formatOptions.length - 2) {
54
61
  this.activeIndex++;
@@ -102,13 +109,14 @@ export default {
102
109
  align-items: center;
103
110
  .switch-page-btn {
104
111
  width: 80px;
105
- height: 30px;
112
+ height: 24px;
106
113
  border-radius: 15px;
107
114
  border: solid 1px #366AFF;
108
115
  color: #366AFF;
109
- line-height: 30px;
116
+ line-height: 24px;
110
117
  text-align: center;
111
118
  cursor: pointer;
119
+ font-size: 12px;
112
120
  }
113
121
  }
114
122
  .radio-description {