|
@@ -791,13 +791,11 @@ export default {
|
|
|
for (let i = 0; i < this.chatContents.length; i++) {
|
|
|
if (this.chatContents[i].from == 1) {
|
|
|
console.log(this.chatContents[i].hasOwnProperty("isHistory"));
|
|
|
- debugger;
|
|
|
if (!this.chatContents[i].hasOwnProperty("isHistory")) {
|
|
|
list.push(this.chatContents[i].question);
|
|
|
}
|
|
|
} else {
|
|
|
if (!this.chatContents[i].hasOwnProperty("isHistory")) {
|
|
|
- debugger;
|
|
|
list.push(this.chatContents[i].answer);
|
|
|
}
|
|
|
}
|
|
@@ -805,14 +803,12 @@ export default {
|
|
|
} else {
|
|
|
for (let i = 5; i > 0; i--) {
|
|
|
if (this.chatContents[this.chatContents.length - i].from == 1) {
|
|
|
- debugger;
|
|
|
if (
|
|
|
!this.chatContents[this.chatContents.length - i].hasOwnProperty("isHistory")
|
|
|
) {
|
|
|
list.push(this.chatContents[this.chatContents.length - i].question);
|
|
|
}
|
|
|
} else {
|
|
|
- debugger;
|
|
|
if (
|
|
|
!this.chatContents[this.chatContents.length - i].hasOwnProperty("isHistory")
|
|
|
) {
|