mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-28 16:40:20 +09:00
enhance code
This commit is contained in:
parent
3754160407
commit
65edb38ec9
@ -30,6 +30,7 @@ import { type ClientApi, getClientApi } from "../client/api";
|
||||
import { useAccessStore } from "../store";
|
||||
import clsx from "clsx";
|
||||
import { initializeMcpSystem, isMcpEnabled } from "../mcp/actions";
|
||||
import { isEmpty } from "lodash-es";
|
||||
|
||||
export function Loading(props: { noLogo?: boolean }) {
|
||||
return (
|
||||
@ -270,7 +271,7 @@ export function Home() {
|
||||
}
|
||||
|
||||
// 处理消息
|
||||
if (event?.data?.omeToken !== null || event?.data?.omeToken !== undefined)
|
||||
if (!isEmpty(event?.data?.omeToken))
|
||||
appConfig.setOmeToken(event.data.omeToken);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user