mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-06-08 05:40:38 +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 { useAccessStore } from "../store";
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import { initializeMcpSystem, isMcpEnabled } from "../mcp/actions";
|
import { initializeMcpSystem, isMcpEnabled } from "../mcp/actions";
|
||||||
|
import { isEmpty } from "lodash-es";
|
||||||
|
|
||||||
export function Loading(props: { noLogo?: boolean }) {
|
export function Loading(props: { noLogo?: boolean }) {
|
||||||
return (
|
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);
|
appConfig.setOmeToken(event.data.omeToken);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user