暂时 忽略
This commit is contained in:
parent
97a86609ff
commit
668b7a835f
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue