mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-06-18 15:54:08 +08:00
fix(chat-build): 避免预渲染阶段请求本地接口
- 移除聊天页 setup 阶段的服务端会话预取\n- 改为客户端挂载后再加载账号和会话数据\n- 修复 nuxt generate 在发布机构建时访问本地聊天接口导致的失败
This commit is contained in:
@@ -84,7 +84,7 @@ if (process.client) {
|
||||
|
||||
const searchContext = ref(createEmptySearchContext())
|
||||
|
||||
const sessionState = await useChatSessions({
|
||||
const sessionState = useChatSessions({
|
||||
chatAccounts,
|
||||
selectedAccount,
|
||||
realtimeEnabled,
|
||||
|
||||
Reference in New Issue
Block a user