Update home.tsx

This commit is contained in:
dockersky
2023-04-02 17:18:29 +08:00
committed by GitHub
parent 46acdb1d39
commit b4d30a6551

View File

@@ -608,7 +608,7 @@ export function Home() {
// setting // setting
const [openSettings, setOpenSettings] = useState(false); const [openSettings, setOpenSettings] = useState(false);
const config = useChatStore((state) => state.config); const config = useChatStore((state) => state.config);
const [isAllow, setIsAllow] = useState(undefined); const [isAllow, setIsAllow] = useState(true);
useEffect(() => { useEffect(() => {
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);