Compare commits
2 Commits
dy
...
3b8e604853
| Author | SHA1 | Date | |
|---|---|---|---|
| 3b8e604853 | |||
| fbb19c4603 |
@@ -6,7 +6,7 @@
|
|||||||
"placeholder": "快告诉智念您在想什么~",
|
"placeholder": "快告诉智念您在想什么~",
|
||||||
"loginDesc": "您好,欢迎来到智念科技",
|
"loginDesc": "您好,欢迎来到智念科技",
|
||||||
"logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png",
|
"logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png",
|
||||||
"ipLargeImage": "https://oss.nianxx.cn/mp/static/version_101/dh/dh_large.png",
|
"ipLargeImage": "https://oss.nianxx.cn/mp/static/version_101/zn/zn_large.png",
|
||||||
"ipSmallImage": "https://oss.nianxx.cn/mp/static/version_101/dh/dh_small.png",
|
"ipSmallImage": "https://oss.nianxx.cn/mp/static/version_101/dh/dh_small.png",
|
||||||
"ipLargeImageHeight": 19687,
|
"ipLargeImageHeight": 19687,
|
||||||
"ipSmallImageHeight": 3744,
|
"ipSmallImageHeight": 3744,
|
||||||
|
|||||||
@@ -7,13 +7,6 @@ export const MessageRole = {
|
|||||||
OTHER: "OTHER",
|
OTHER: "OTHER",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const MessageType = {
|
|
||||||
// 文本消息
|
|
||||||
TEXT: "TEXT",
|
|
||||||
// 图片消息
|
|
||||||
IMAGE: "IMAGE",
|
|
||||||
};
|
|
||||||
|
|
||||||
/// 组件的名称
|
/// 组件的名称
|
||||||
export const CompName = {
|
export const CompName = {
|
||||||
// 快速预定卡片
|
// 快速预定卡片
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ import {
|
|||||||
NOTICE_EVENT_LOGOUT,
|
NOTICE_EVENT_LOGOUT,
|
||||||
NOTICE_EVENT_LOGIN_SUCCESS,
|
NOTICE_EVENT_LOGIN_SUCCESS,
|
||||||
} from "@/constant/constant";
|
} from "@/constant/constant";
|
||||||
import { MessageRole, MessageType, CompName } from "@/model/ChatModel";
|
import { MessageRole, CompName } from "@/model/ChatModel";
|
||||||
import ChatTopWelcome from "../ChatTopWelcome/index.vue";
|
import ChatTopWelcome from "../ChatTopWelcome/index.vue";
|
||||||
import ChatTopNavBar from "../ChatTopNavBar/index.vue";
|
import ChatTopNavBar from "../ChatTopNavBar/index.vue";
|
||||||
import ChatCardAI from "../ChatCardAi/index.vue";
|
import ChatCardAI from "../ChatCardAi/index.vue";
|
||||||
@@ -608,10 +608,6 @@ const sendMessage = async (message, isInstruct = false) => {
|
|||||||
msgId: `msg_${chatMsgList.value.length}`,
|
msgId: `msg_${chatMsgList.value.length}`,
|
||||||
msgType: MessageRole.ME,
|
msgType: MessageRole.ME,
|
||||||
msg: message,
|
msg: message,
|
||||||
msgContent: {
|
|
||||||
type: MessageType.TEXT,
|
|
||||||
text: message,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
chatMsgList.value.push(newMsg);
|
chatMsgList.value.push(newMsg);
|
||||||
inputMessage.value = "";
|
inputMessage.value = "";
|
||||||
@@ -744,10 +740,6 @@ const sendChat = async (message, isInstruct = false) => {
|
|||||||
msgType: MessageRole.AI,
|
msgType: MessageRole.AI,
|
||||||
msg: "加载中",
|
msg: "加载中",
|
||||||
isLoading: true,
|
isLoading: true,
|
||||||
msgContent: {
|
|
||||||
type: MessageType.TEXT,
|
|
||||||
url: "",
|
|
||||||
},
|
|
||||||
messageId: currentSessionMessageId,
|
messageId: currentSessionMessageId,
|
||||||
};
|
};
|
||||||
chatMsgList.value.push(aiMsg);
|
chatMsgList.value.push(aiMsg);
|
||||||
|
|||||||
Reference in New Issue
Block a user