重构应用程序架构,添加 OpenIM SDK 初始化和引导逻辑

This commit is contained in:
2026-03-09 06:45:47 +07:00
parent 8963f777ee
commit bbb0f88259
5 changed files with 115 additions and 23 deletions

View File

@@ -0,0 +1,11 @@
import { useEffect } from "react";
import { bootstrapOpenIM } from "@/features/im/openim-bootstrap";
export function useOpenIMBootstrap() {
useEffect(() => {
bootstrapOpenIM().catch((error) => {
console.error("OpenIM bootstrap failed", error);
});
}, []);
}