diff --git a/shared/api/buildStorage.ts b/shared/api/buildStorage.ts index a890cbe4..6613a281 100644 --- a/shared/api/buildStorage.ts +++ b/shared/api/buildStorage.ts @@ -72,7 +72,7 @@ export function buildStorage(backend: any) { } catch (e: any) { if (!(e instanceof NotFoundError)) { // 过滤NotFoundError - console.log(`get key ${key} error:`, e.toString()); + console.log(`get key ${key} error:`, String(e)); } res = _isNil(defaultVal) ? null : defaultVal; diff --git a/shared/redux/slices/chat.ts b/shared/redux/slices/chat.ts index 613fe4f4..bf972cef 100644 --- a/shared/redux/slices/chat.ts +++ b/shared/redux/slices/chat.ts @@ -11,7 +11,7 @@ export interface ChatConverseState extends ChatConverseInfo { hasFetchedHistory: boolean; } -interface ChatState { +export interface ChatState { currentConverseId: string | null; // 当前活跃的会话id converses: Record; // <会话Id, 会话信息> ack: Record; // <会话Id, 本地最后一条会话Id> diff --git a/shared/redux/slices/group.ts b/shared/redux/slices/group.ts index f682049b..a0fd1e4e 100644 --- a/shared/redux/slices/group.ts +++ b/shared/redux/slices/group.ts @@ -1,7 +1,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import type { GroupInfo } from '../../model/group'; -interface GroupState { +export interface GroupState { groups: Record; } diff --git a/shared/redux/slices/ui.ts b/shared/redux/slices/ui.ts index ce0d8729..40dabd01 100644 --- a/shared/redux/slices/ui.ts +++ b/shared/redux/slices/ui.ts @@ -1,6 +1,6 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; -interface UIState { +export interface UIState { panelWinUrls: string[]; } diff --git a/shared/redux/slices/user.ts b/shared/redux/slices/user.ts index 5d4915bc..e2679a52 100644 --- a/shared/redux/slices/user.ts +++ b/shared/redux/slices/user.ts @@ -2,7 +2,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import type { UserLoginInfo } from '../../model/user'; import type { FriendRequest } from '../../model/friend'; -interface UserState { +export interface UserState { info: UserLoginInfo | null; friends: string[]; // 好友的id列表 friendRequests: FriendRequest[];