askbot-dragon 1.7.52-beta → 1.7.54-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
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</div>
|
|
77
77
|
</template>
|
|
78
78
|
<template v-if="msg.content.type == 0">
|
|
79
|
-
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition" :id="item.knowledgeId">
|
|
79
|
+
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition" :id="item.knowledgeId + knowledgeIndex">
|
|
80
80
|
<div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
|
|
81
81
|
<img class="alc-title-icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
|
|
82
82
|
<span class="alc-title-from">{{ item.from }}</span> -
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
</template>
|
|
146
146
|
<template v-if="msg.content.type == 0">
|
|
147
147
|
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
|
|
148
|
-
class="libang_list_cell_recognition" @click="lookAttach(item.url, item, $event)" :id="item.knowledgeId">
|
|
148
|
+
class="libang_list_cell_recognition" @click="lookAttach(item.url, item, $event)" :id="item.knowledgeId + knowledgeIndex">
|
|
149
149
|
<div class="libang_list_cell_left" >
|
|
150
150
|
<div class="libang_source_name" >
|
|
151
151
|
<img class="libang_title_icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
|
|
@@ -275,7 +275,7 @@ export default {
|
|
|
275
275
|
previewOssPath: ""
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","language","isHistory"],
|
|
278
|
+
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","language","isHistory","knowledgeIndex"],
|
|
279
279
|
beforeMounted () {
|
|
280
280
|
},
|
|
281
281
|
watch: {
|
|
@@ -417,8 +417,9 @@ export default {
|
|
|
417
417
|
} else {
|
|
418
418
|
this.$refs.previewPdf.fileName = '';
|
|
419
419
|
}
|
|
420
|
-
let
|
|
421
|
-
|
|
420
|
+
let domId = item.knowledgeId + this.knowledgeIndex
|
|
421
|
+
let dom = document.getElementById(domId);
|
|
422
|
+
console.log('滚动到指定预览知识位置',dom,this.knowledgeIndex)
|
|
422
423
|
if (dom){
|
|
423
424
|
dom.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
|
424
425
|
}
|