暂时 忽略

This commit is contained in:
liuyalei 2024-03-06 15:20:02 +08:00
parent 97a86609ff
commit 668b7a835f
1 changed files with 20 additions and 20 deletions

View File

@ -309,26 +309,26 @@ const sendMessage = () => {
}).catch(error => {
console.log(error)
})
if (inputText.value.indexOf('导航') != -1 || inputText.value.indexOf('怎么走') != -1) {
messagesCopy[10].id = Date.now();
messages.push(messagesCopy[10]);
} else if (inputText.value.indexOf('医生') != -1) {
messagesCopy[4].id = Date.now();
messagesCopy[5].id = Date.now() + 1;
messages.push(messagesCopy[4], messagesCopy[5]);
} else if (inputText.value.indexOf('总是头疼') != -1) {
messagesCopy[7].id = Date.now();
messages.push(messagesCopy[7]);
} else if (inputText.value.indexOf('普通') != -1 || inputText.value.indexOf('专家') != -1) {
messagesCopy[8].id = Date.now();
messages.push(messagesCopy[8]);
} else if (inputText.value.indexOf('医院') != -1) {
messagesCopy[2].id = Date.now();
messagesCopy[3].id = Date.now() + 1;
messages.push(messagesCopy[2], messagesCopy[3]);
} else {
// if (inputText.value.indexOf('') != -1 || inputText.value.indexOf('') != -1) {
// messagesCopy[10].id = Date.now();
// messages.push(messagesCopy[10]);
// } else if (inputText.value.indexOf('') != -1) {
// messagesCopy[4].id = Date.now();
// messagesCopy[5].id = Date.now() + 1;
// messages.push(messagesCopy[4], messagesCopy[5]);
// } else if (inputText.value.indexOf('') != -1) {
// messagesCopy[7].id = Date.now();
// messages.push(messagesCopy[7]);
// } else if (inputText.value.indexOf('') != -1 || inputText.value.indexOf('') != -1) {
// messagesCopy[8].id = Date.now();
// messages.push(messagesCopy[8]);
// } else if (inputText.value.indexOf('') != -1) {
// messagesCopy[2].id = Date.now();
// messagesCopy[3].id = Date.now() + 1;
// messages.push(messagesCopy[2], messagesCopy[3]);
// } else {
// messages.push({ id: Date.now(), text: ' ', isMe: false, type: 'txt' });
}
// }
// console.log("messages", messages)
scollToButtom();
inputText.value = '';