diff --git a/src/api/aiChat.js b/src/api/aiChat.js new file mode 100644 index 0000000..2803e15 --- /dev/null +++ b/src/api/aiChat.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 官网 AI 智能咨询 +export function aiChat(data) { + return request({ + url: '/portal/ai/chat', + method: 'post', + data + }) +} diff --git a/src/components/chat/ai.vue b/src/components/chat/ai.vue new file mode 100644 index 0000000..39b2ea7 --- /dev/null +++ b/src/components/chat/ai.vue @@ -0,0 +1,526 @@ + + + + + + + + + + + 海威 AI 助手 + + + + + + + + + + {{ i.userName }} {{ formatTime(i.time) }} + + {{ i.content }} + + + {{ i.userName }} {{ formatTime(i.time) }} + {{ i.content }} + + + {{ i.userName }} {{ formatTime(i.time) }} + + + 请选择问题类型 + + 设备相关 + 软件相关 + 测试 + + + + + + + + + + 发送消息 + + + + + + + + + +