Commit 3d8874f1 authored by yaya's avatar yaya

feat: 优化环境

parent 18cb1194
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
messageContent: '', messageContent: '',
nextReqMessageID: '', // 历史消息下一页 nextReqMessageID: '', // 历史消息下一页
isCompleted: false, isCompleted: false,
envText: 'cjxc-applet-dev_', envText: process.env.NODE_ENV === 'development' ? 'cjxc-applet-dev_' : 'cjxc-applet_',
conversationList: [], // 会话列表 conversationList: [], // 会话列表
currentConversationItem: {}, // 当前聊天 currentConversationItem: {}, // 当前聊天
messageList: [], // 历史消息 messageList: [], // 历史消息
...@@ -115,6 +115,7 @@ export default { ...@@ -115,6 +115,7 @@ export default {
mounted() { mounted() {
}, },
created() { created() {
console.log('==环境==', process.env.NODE_ENV)
chat.on(TencentCloudChat.EVENT.SDK_READY, this.onSdkReady) chat.on(TencentCloudChat.EVENT.SDK_READY, this.onSdkReady)
this.handleGetUserInfo() this.handleGetUserInfo()
this.handleGetChatList() this.handleGetChatList()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment